Home
last modified time | relevance | path

Searched refs:grad_shape (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtraining_ops.cc141 TensorShape grad_shape = ctx->InputShape(3); in Compile() local
142 OP_REQUIRES(ctx, var_shape.IsSameSize(grad_shape), in Compile()
145 var_shape.DebugString(), " ", grad_shape.DebugString())); in Compile()
199 TensorShape grad_shape = ctx->InputShape(3); in Compile() local
200 OP_REQUIRES(ctx, var_shape.IsSameSize(grad_shape), in Compile()
203 var_shape.DebugString(), " ", grad_shape.DebugString())); in Compile()
255 TensorShape grad_shape = ctx->InputShape(3); in Compile() local
256 OP_REQUIRES(ctx, var_shape.IsSameSize(grad_shape), in Compile()
259 var_shape.DebugString(), " ", grad_shape.DebugString())); in Compile()
304 TensorShape grad_shape = ctx->InputShape(5); in Compile() local
[all …]
Dimage_resize_ops.cc619 TensorShape grad_shape = ctx->InputShape(0); in Compile() local
620 OP_REQUIRES(ctx, grad_shape.dims() == 4, in Compile()
622 grad_shape.DebugString())); in Compile()
623 const int64 grad_batch = grad_shape.dim_size(0); in Compile()
624 const std::vector<int64> grad_size = {grad_shape.dim_size(1), in Compile()
625 grad_shape.dim_size(2)}; in Compile()
626 const int64 grad_channels = grad_shape.dim_size(3); in Compile()
/external/tensorflow/tensorflow/python/kernel_tests/
Dshape_ops_test.py569 grad_shape = [4, 4]
570 grad_inp = np.random.rand(*grad_shape).astype("f")
572 [float(x) for x in grad_inp.flatten()], shape=grad_shape)
585 grad_shape = [4, 4]
586 grad_inp = np.random.rand(*grad_shape).astype("f")
588 [float(x) for x in grad_inp.flatten()], shape=grad_shape)
605 grad_shape = [4, 4]
606 grad_inp = np.random.rand(*grad_shape).astype("f")
608 [float(x) for x in grad_inp.flatten()], shape=grad_shape)
620 grad_shape = [4, 4]
[all …]
Dsparse_conditional_accumulator_test.py516 q.apply_grad(grad_indices=0, grad_values=[1.0], grad_shape=[]).run()
524 q.apply_grad(grad_indices=[0], grad_values=1.0, grad_shape=[]).run()
531 q.apply_grad(grad_indices=[0], grad_values=[1.0], grad_shape=[]).run()
547 grad_shape=[2, 2]).run()
556 grad_shape=[2, 3, 2]).run()
666 grad_shape=constant_op.constant(
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.sparse.-sparse-conditional-accumulator.pbtxt24 …argspec: "args=[\'self\', \'grad_indices\', \'grad_values\', \'grad_shape\', \'local_step\', \'nam…
Dtensorflow.-sparse-conditional-accumulator.pbtxt24 …argspec: "args=[\'self\', \'grad_indices\', \'grad_values\', \'grad_shape\', \'local_step\', \'nam…
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.sparse.-sparse-conditional-accumulator.pbtxt24 …argspec: "args=[\'self\', \'grad_indices\', \'grad_values\', \'grad_shape\', \'local_step\', \'nam…
/external/tensorflow/tensorflow/python/ops/
Ddata_flow_ops.py1385 grad_shape=grad.dense_shape,
1392 grad_shape=None, argument
1433 [] if grad_shape is None else grad_shape, _dtypes.int64),
1434 has_known_shape=(grad_shape is not None),
Darray_grad.py352 grad_shape = array_ops.shape(grad)
354 batch_shape = array_ops.slice(grad_shape, [0], [grad_rank - 2])
355 matrix_shape = array_ops.slice(grad_shape, [grad_rank - 2], [2])
Dmath_grad.py894 grad_shape = grad._shape_tuple()
896 return (x_shape == y_shape and x_shape == grad_shape and
Dcontrol_flow_ops.py1289 grad_shape = array_ops.shape_internal(enter_grad, optimize=False)
1290 grad_val = array_ops.zeros(grad_shape)
/external/tensorflow/tensorflow/python/ops/parallel_for/
Dpfor.py2226 grad_shape = array_ops.shape(grad)
2227 last_dim_shape = grad_shape[-1]
2228 first_dim_shape = grad_shape[0]