Home
last modified time | relevance | path

Searched refs:indices_dtype (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/python/kernel_tests/
Dsparse_tensor_dense_matmul_grad_test.py34 def _sparsify(self, x, indices_dtype=np.int64): argument
38 x_indices = np.vstack(non_zero).astype(indices_dtype).T
50 indices_dtype=np.int64): argument
58 return self._sparsify(x, indices_dtype=indices_dtype)
63 indices_dtype): argument
70 indices_dtype=indices_dtype)
85 def _testGradientsType(self, values_dtype, indices_dtype): argument
89 adjoint_a, adjoint_b, values_dtype.__name__, indices_dtype.__name__)
91 indices_dtype)
Dbatch_gather_op_test.py45 def testSimpleGather(self, indices_dtype): argument
52 indices_tf = constant_op.constant(indices, dtype=indices_dtype)
61 def test2DArray(self, indices_dtype): argument
68 indices_tf = constant_op.constant(indices, dtype=indices_dtype)
Dsparse_tensor_dense_matmul_op_test.py55 indices_dtype=np.int64): argument
65 x_indices = np.vstack(np.where(x)).astype(indices_dtype).T
92 def _testBasic(self, value_dtype, indices_dtype=np.int64): argument
98 self._testMatmul(x, y, indices_dtype=indices_dtype)
108 self._testBasic(np.int32, indices_dtype=np.int32)
109 self._testBasic(np.float32, indices_dtype=np.int32)
Dsparse_ops_test.py115 def _SparseTensorValue_3x50(self, indices_dtype, values_dtype): argument
125 np.array(indices, indices_dtype), np.array(shape, np.int64))
131 def _SparseTensor_3x50(self, indices_dtype, values_dtype): argument
132 indices, values = self._SparseTensorValue_3x50(indices_dtype, values_dtype)
229 def _SparseTensor_3x50(self, indices_dtype, values_dtype): argument
240 np.array(indices0, indices_dtype), np.array(shape, np.int64))
243 np.array(indices1, indices_dtype), np.array(shape, np.int64))
/external/tensorflow/tensorflow/python/ops/
Darray_ops.py3495 indices_dtype = indices.dtype.base_dtype
3496 accum_dim_value = ones((), dtype=indices_dtype)
3498 casted_params_shape = gen_math_ops.cast(params_shape, indices_dtype)
3502 start = zeros((), dtype=indices_dtype)
3503 step = ones((), dtype=indices_dtype)