Home
last modified time | relevance | path

Searched refs:grad_ys (Results 1 – 24 of 24) sorted by relevance

/external/tensorflow/tensorflow/python/ops/
Dgradients_util.py191 def _DefaultGradYs(grad_ys, argument
213 if len(grad_ys) != len(ys):
214 raise ValueError("Passed %d grad_ys for %d ys" % (len(grad_ys), len(ys)))
215 grad_ys = ops.convert_n_to_tensor_or_indexed_slices(grad_ys, name="grad_y")
217 for i in xrange(len(grad_ys)):
218 grad_y = grad_ys[i]
548 grad_ys=None, argument
583 if grad_ys is None:
584 grad_ys = [None] * len(ys)
586 grad_ys = _AsList(grad_ys)
[all …]
Dgradients_impl.py46 grad_ys=None, argument
156 ys, xs, grad_ys, name, colocate_gradients_with_ops,
165 grad_ys=None, argument
272 ys, xs, grad_ys, name, True, gate_gradients,
Dcond_v2.py280 grad_ys = []
285 grad_ys.append(grad_y)
292 ys, func_graph.inputs, grad_ys=grad_ys,
Dwhile_v2.py494 grad_ys = args[3:]
502 ys, xs, grad_ys=grad_ys, src_graph=func_graph,
Dgradients_test.py240 dx, = gradients.gradients(y, x, grad_ys=dy)
925 grads = gradients.gradients(out, [x, variables[0]], grad_ys=out_grad)
1043 grads = gradients.gradients(out, [x, variables[0]], grad_ys=out_grad)
1054 grads = gradients.gradients(out, [x, variables[0]], grad_ys=out_grad)
1136 grad = gradients.gradients(tl, a, grad_ys=grad_tl)[0]
/external/tensorflow/tensorflow/contrib/nn/python/ops/
Dfwd_gradients.py57 dydxs = gradients(ys, xs, grad_ys=us)
74 dysdx = gradients(dydxs, us, grad_ys=grad_xs)
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Drev_block_lib.py90 def _rev_layer_backward(ys, grad_ys, f, g, f_vars, f_side_input, g_vars, argument
94 grad_y1, grad_y2 = grad_ys
246 def _efficient_grad_fn(*grad_ys, **kwargs): argument
298 ys, grad_ys, f_ret, g_ret = _rev_layer_backward(
299 ys, grad_ys, f[i], g[i], f_vars[i], self.f_side_input, g_vars[i],
331 grad_x1, grad_x2 = grad_ys
/external/tensorflow/tensorflow/python/kernel_tests/
Dtensor_array_ops_test.py722 ys=[r0], xs=[value_0], grad_ys=[c([[2.0, 3.0]])])
729 grad_ys=[c([[2.0, 3.0]]), c([[1.0, -1.0]])])
734 ys=[r1], xs=[value_1], grad_ys=[c(-2.0)])
742 grad_ys=[c([[2.0, 3.0]]), c([[1.0, -1.0]]), c(-2.0)])
775 grad_ys=[
838 grad_ys=[[2.0, 3.0], [-1.5, 1.5], [4.0, 5.0]])
865 grad_ys=[[[2.0, -2.0], [20.0, -20.0], [200.0, -200.0]]])
888 ys=[r0, r1], xs=[value], grad_ys=[[2.0, 3.0], [4.0, 5.0]])
1292 grad_r0 = gradients_impl.gradients(ys=[r0], xs=[x], grad_ys=[1.0])
1309 grad_r0_x1 = gradients_impl.gradients(ys=[r0], xs=[x0, x1], grad_ys=[1.0])
[all …]
Dnth_element_op_test.py169 values, inputs, grad_ys=[[-1., 2., 5.]]),
Dtopk_op_test.py213 values, inputs, grad_ys=[[[1., 2., 3.], [4., 5., 6.]]]),
Ddiag_op_test.py202 grads = gradients_impl.gradients(output, [mat, v], grad_ys=grad_input)
Darray_ops_test.py855 slice_val_grad, = gradients_impl.gradients(slice_val, self.var, grad_ys=dy)
857 slice_val_grad, dy, grad_ys=self.var)
Dcwise_ops_test.py1158 g = gradients_impl.gradients(y, args, grad_ys=grad_y)
Dcontrol_flow_ops_py_test.py3386 grad_ys = [variables.VariableV1(73)._ref()] # pylint: disable=protected-access
3387 grad = gradients_impl.gradients([r[1]], [x], grad_ys=grad_ys)
/external/tensorflow/tensorflow/compiler/tests/
Dtensor_array_ops_test.py463 ys=[r0], xs=[value_0], grad_ys=[c([[2.0, 3.0]])])
470 grad_ys=[c([[2.0, 3.0]]), c([[1.0, -1.0]])])
475 ys=[r1], xs=[value_1], grad_ys=[c([[-2.0, -4.0]])])
483 grad_ys=[c([[2.0, 3.0]]), c([[1.0, -1.0]]), c([[-2.0, -10.0]])])
517 grad_ys=[
566 grad_ys=[[2.0, 3.0], [-1.5, 1.5], [4.0, 5.0]])
591 grad_ys=[[[2.0, -2.0], [20.0, -20.0], [200.0, -200.0],
905 grad_r0 = gradients_impl.gradients(ys=[r0], xs=[x], grad_ys=[1.0])
991 ys=[r0, r1], xs=[value], grad_ys=[[2.0, 3.0], [4.0, 5.0]])
1017 ys=[g], xs=[values], grad_ys=[[[2.0, 3.0], [4.0, 5.0]]])
Dfft_test.py101 grad_ys=array_ops.ones_like(out))
/external/tensorflow/tensorflow/contrib/recurrent/python/ops/
Drecurrent.py636 grad_ys = _Flatten([dstate1])
637 grads = gradients_impl.gradients(ys=ys, xs=xs, grad_ys=grad_ys)
/external/tensorflow/tensorflow/contrib/recurrent/python/kernel_tests/
Drecurrent_test.py120 ys=[xw], xs=[h0, x, w], grad_ys=[dxw])
/external/tensorflow/tensorflow/contrib/optimizer_v2/
Doptimizer_v2.py821 grad_ys=grad_loss,
/external/tensorflow/tensorflow/python/training/
Doptimizer.py499 loss, var_refs, grad_ys=grad_loss,
/external/tensorflow/tensorflow/python/eager/
Dfunction.py777 grad_ys=gradients_wrt_outputs,
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.pbtxt645 …argspec: "args=[\'ys\', \'xs\', \'grad_ys\', \'name\', \'gate_gradients\', \'aggregation_method\',…
/external/tensorflow/tensorflow/python/framework/
Dfunction_test.py368 dx, dy = gradients_impl.gradients([z], [x, y], grad_ys=[1.0])
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.pbtxt1357 …argspec: "args=[\'ys\', \'xs\', \'grad_ys\', \'name\', \'colocate_gradients_with_ops\', \'gate_gra…