Searched refs:_sparsify (Results 1 – 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | sparse_add_op_test.py | 39 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)
|
D | sparse_tensor_dense_matmul_grad_test.py | 34 def _sparsify(self, x, indices_dtype=np.int64): member in SparseTensorDenseMatMulGradientTest 58 return self._sparsify(x, indices_dtype=indices_dtype)
|
D | sparse_ops_test.py | 41 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 …]
|
D | shape_ops_test.py | 39 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)
|
D | cwise_ops_unary_test.py | 43 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)
|
D | cwise_ops_binary_test.py | 48 def _sparsify(x, thresh=0.5, index_dtype=np.int64): function
|
D | cwise_ops_test.py | 58 def _sparsify(x, thresh=0.5, index_dtype=np.int64): function
|
/external/tensorflow/tensorflow/contrib/layers/python/layers/ |
D | layers_test.py | 1531 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_)
|