Home
last modified time | relevance | path

Searched refs:_sparsify (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/python/kernel_tests/
Dsparse_add_op_test.py39 def _sparsify(x, thresh=0.5, index_dtype=np.int64): function
56 return _sparsify(x) if sparse else x
168 sparse, unused_nnz = _sparsify(rand_vals_np, index_dtype=index_dtype)
188 sparse, nnz = _sparsify(rand_vals_np)
222 sp_t, unused_nnz = _sparsify(sp_vals, thresh=sparsity, index_dtype=np.int32)
Dsparse_tensor_dense_matmul_grad_test.py34 def _sparsify(self, x, indices_dtype=np.int64): member in SparseTensorDenseMatMulGradientTest
58 return self._sparsify(x, indices_dtype=indices_dtype)
Dsparse_ops_test.py41 def _sparsify(x, thresh=0.5, index_dtype=np.int64): function
685 sp_t, unused_nnz = _sparsify(np.random.randn(*dims))
714 sp_t, nnz = _sparsify(np.random.randn(*dims))
809 sp_t, unused_nnz = _sparsify(sp_vals_np, thresh=1.5)
852 sp_t, nnz = _sparsify(sp_vals_np, thresh=1.5)
883 batched_sp_t, unused_nnz1 = _sparsify(
914 sp_t, unused_nnz = _sparsify(values, thresh=1e-2)
930 x_tf, nnz = _sparsify(x_np)
971 sp_a, unused_a_nnz = _sparsify(a_np, thresh=-.5)
972 sp_b, unused_b_nnz = _sparsify(b_np, thresh=-.5)
[all …]
Dshape_ops_test.py39 def _sparsify(x, thresh=0.5, index_dtype=np.int64): function
66 x_tf, unused_nnz = _sparsify(x_np)
95 x_tf, unused_nnz = _sparsify(x_np)
115 x_tf, unused_nnz = _sparsify(x_np)
Dcwise_ops_unary_test.py43 def _sparsify(x, thresh=0.5, index_dtype=np.int64): function
132 x_sp, x_sp_vals = _sparsify(x)
149 x_sp, x_sp_vals = _sparsify(x)
Dcwise_ops_binary_test.py48 def _sparsify(x, thresh=0.5, index_dtype=np.int64): function
Dcwise_ops_test.py58 def _sparsify(x, thresh=0.5, index_dtype=np.int64): function
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dlayers_test.py1531 def _sparsify(array, threshold=0.5): function
1565 indices, values, _ = _sparsify(random_)
1570 expected_indices, expected_values, _ = _sparsify(reshaped_random_)
1621 indices, values, _ = _sparsify(random_)