Home
last modified time | relevance | path

Searched refs:IndexedSlices (Results 1 – 25 of 81) sorted by relevance

1234

/external/tensorflow/tensorflow/python/ops/
Dclip_ops.py108 t.values if isinstance(t, ops.IndexedSlices) else t, name="t")
119 if isinstance(t, ops.IndexedSlices):
120 t_max = ops.IndexedSlices(t_max, t.indices, t.dense_shape)
195 t.values if isinstance(t, ops.IndexedSlices) else t, name="t")
210 if isinstance(t, ops.IndexedSlices):
211 return ops.IndexedSlices(values_clip, t.indices, t.dense_shape)
246 t.values if isinstance(t, ops.IndexedSlices) else t,
337 t.values if isinstance(t, ops.IndexedSlices) else t,
352 ops.IndexedSlices(c_v, t.indices, t.dense_shape)
353 if isinstance(t, ops.IndexedSlices)
Dwhile_v2_indexed_slices_rewriter.py70 if not isinstance(output, ops.IndexedSlices): continue
136 input_slices = ops.IndexedSlices(
169 assert isinstance(grad_output_slices, ops.IndexedSlices)
201 return ops.IndexedSlices(values=values, indices=indices, dense_shape=shape)
235 return ops.IndexedSlices(values=values, indices=indices,
Dclip_ops_test.py49 indixed_slices = ops.IndexedSlices(values, indices, shape)
52 self.assertIsInstance(clipped, ops.IndexedSlices)
Darray_grad.py158 elif isinstance(grad, ops.IndexedSlices):
186 out_grads.append(ops.IndexedSlices(new_values, grad.indices, size))
207 out_grads.append(ops.IndexedSlices(new_values, new_indices, size))
522 if not isinstance(indexed_slices, ops.IndexedSlices):
555 return [ops.IndexedSlices(values, indices, params_shape), None]
642 params_grad = ops.IndexedSlices(values, indices, params_shape)
687 ref_grad = ops.IndexedSlices(grad, array_ops.squeeze(indices, axis=-1),
700 ref_grad = ops.IndexedSlices(grad, array_ops.squeeze(indices, axis=-1),
814 if isinstance(grad, ops.IndexedSlices):
Dcontrol_flow_grad.py166 if not isinstance(grad, (ops.IndexedSlices, sparse_tensor.SparseTensor)):
223 elif isinstance(grad, ops.IndexedSlices):
/external/tensorflow/tensorflow/python/framework/
Dindexed_slices.py63 class IndexedSlices(_TensorLike, composite_tensor.CompositeTensor): class
156 return IndexedSlices(-self.values, self.indices, self.dense_shape)
201 value_type = property(lambda self: IndexedSlices)
258 return IndexedSlices(*tensor_list)
441 IndexedSlices, _indexed_slices_to_tensor)
Dcomposite_tensor_test.py381 ('IndexedSlicesNoDenseShape', lambda: ops.IndexedSlices(
383 ('IndexedSlicesInt32DenseShape', lambda: ops.IndexedSlices(
386 ('IndexedSlicesInt64DenseShape', lambda: ops.IndexedSlices(
397 ops.IndexedSlices(
/external/tensorflow/tensorflow/python/distribute/
Dcross_device_utils.py688 if any(isinstance(v, ops.IndexedSlices) for v in values):
695 if isinstance(value, ops.IndexedSlices):
697 return ops.IndexedSlices(
705 if isinstance(value, ops.IndexedSlices):
709 result = ops.IndexedSlices(copied_values, copied_indices, copied_shape)
717 if isinstance(value, ops.IndexedSlices):
728 if isinstance(value, ops.IndexedSlices):
731 return all(isinstance(v, ops.IndexedSlices) for v in value.values)
Dcross_device_utils_test.py57 self.assertIsInstance(result, ops.IndexedSlices)
75 self.assertIsInstance(result, ops.IndexedSlices)
134 self.assertIsInstance(result, ops.IndexedSlices)
Dcross_device_ops_test.py91 tensor = ops.IndexedSlices(
112 self.assertIsInstance(left, ops.IndexedSlices)
113 self.assertIsInstance(right, ops.IndexedSlices)
132 if isinstance(left, ops.IndexedSlices):
520 if isinstance(left, ops.IndexedSlices):
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.-indexed-slices.pbtxt1 path: "tensorflow.IndexedSlices"
3 is_instance: "<class \'tensorflow.python.framework.indexed_slices.IndexedSlices\'>"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.-indexed-slices.pbtxt1 path: "tensorflow.IndexedSlices"
3 is_instance: "<class \'tensorflow.python.framework.indexed_slices.IndexedSlices\'>"
/external/tensorflow/tensorflow/python/training/
Dadagrad_test.py153 grads0 = ops.IndexedSlices(
158 grads1 = ops.IndexedSlices(
187 grad_repeated_index = ops.IndexedSlices(
192 grad_aggregated = ops.IndexedSlices(
246 grads0 = ops.IndexedSlices(
Dadam_test.py74 grads0 = ops.IndexedSlices(
78 grads1 = ops.IndexedSlices(
135 grad_repeated_index = ops.IndexedSlices(
140 grad_aggregated = ops.IndexedSlices(
Dftrl_test.py236 grads0 = ops.IndexedSlices(
239 grads1 = ops.IndexedSlices(
311 grads0 = ops.IndexedSlices(
314 grads1 = ops.IndexedSlices(
Doptimizer.py126 assert isinstance(g, ops.IndexedSlices), ("Gradient ", g, " is neither a "
165 if isinstance(g, ops.IndexedSlices):
585 if not isinstance(g, (ops.Tensor, ops.IndexedSlices)):
686 if not isinstance(g, (ops.Tensor, ops.IndexedSlices)):
1034 gradient_no_duplicate_indices = ops.IndexedSlices(
/external/tensorflow/tensorflow/python/kernel_tests/
Dsparse_conditional_accumulator_test.py43 return ops.IndexedSlices(
123 ops.IndexedSlices(
189 grad_indexed_slices = ops.IndexedSlices(
210 grad_indexed_slices = ops.IndexedSlices(
237 grad_indexed_slices = ops.IndexedSlices(
253 grad_indexed_slices = ops.IndexedSlices(
685 ops.IndexedSlices(
Dresource_variable_ops_test.py547 v.scatter_add(ops.IndexedSlices(indices=[1], values=[2.5])))
555 v.scatter_sub(ops.IndexedSlices(indices=[1], values=[1.5])))
563 v.scatter_max(ops.IndexedSlices(indices=[1], values=[5.0])))
569 v.scatter_max(ops.IndexedSlices(indices=[1], values=[2.0])))
577 v.scatter_min(ops.IndexedSlices(indices=[1], values=[5.0])))
583 v.scatter_min(ops.IndexedSlices(indices=[1], values=[2.0])))
591 v.scatter_mul(ops.IndexedSlices(indices=[1], values=[3.0])))
599 v.scatter_div(ops.IndexedSlices(indices=[1], values=[2.0])))
607 v.scatter_update(ops.IndexedSlices(indices=[1], values=[3.0])))
974 slices = ops.IndexedSlices(indices=[1], values=[2])
[all …]
/external/tensorflow/tensorflow/python/eager/
Dbackprop.py563 assert isinstance(grad, ops.IndexedSlices)
567 assert isinstance(grad.values, ops.IndexedSlices)
569 return ops.IndexedSlices(g.values, array_ops.gather(grad.indices,
594 concat_grad = ops.IndexedSlices(
619 assert all(isinstance(g, (ops.Tensor, ops.IndexedSlices))
631 if isinstance(grad, ops.IndexedSlices):
/external/tensorflow/tensorflow/python/training/experimental/
Dloss_scale_optimizer.py147 if isinstance(grad, ops.IndexedSlices):
149 return ops.IndexedSlices(grad_vals, grad.indices, grad.dense_shape)
/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Dadagrad_test.py316 grads0 = ops.IndexedSlices(
320 grads1 = ops.IndexedSlices(
356 grads0 = ops.IndexedSlices(
391 grad_repeated_index = ops.IndexedSlices(
394 grad_aggregated = ops.IndexedSlices(
451 grads0 = ops.IndexedSlices(
Dftrl_test.py238 grads0 = ops.IndexedSlices(
241 grads1 = ops.IndexedSlices(
313 grads0 = ops.IndexedSlices(
316 grads1 = ops.IndexedSlices(
Dgradient_descent_test.py210 grads0 = ops.IndexedSlices(
213 grads1 = ops.IndexedSlices(
232 grads0 = ops.IndexedSlices(
235 grads1 = ops.IndexedSlices(
415 y_feed = ops.IndexedSlices(x_feed, constant_op.constant([0, 1]),
528 grads0 = ops.IndexedSlices(
531 grads1 = ops.IndexedSlices(
Dadam_test.py127 grads0 = ops.IndexedSlices(
131 grads1 = ops.IndexedSlices(
180 grad_repeated_index = ops.IndexedSlices(
185 grad_aggregated = ops.IndexedSlices(
320 grad_repeated_index = ops.IndexedSlices(
323 grad_aggregated = ops.IndexedSlices(grads0_np, indices,
Dadamax_test.py96 grads0 = ops.IndexedSlices(
100 grads1 = ops.IndexedSlices(
153 grad_repeated_index = ops.IndexedSlices(
158 grad_aggregated = ops.IndexedSlices(

1234