Home
last modified time | relevance | path

Searched refs:is_sparse (Results 1 – 25 of 35) sorted by relevance

12

/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Dtensor_signature.py66 cls, dtype=tensor.values.dtype, shape=None, is_sparse=True)
68 cls, dtype=tensor.dtype, shape=tensor.get_shape(), is_sparse=False)
88 if other.is_sparse:
89 return self.is_sparse and self.dtype.is_compatible_with(other.dtype)
92 not self.is_sparse)
95 if self.is_sparse:
107 if self.is_sparse:
/external/tensorflow/tensorflow/python/framework/
Dsparse_tensor_test.py60 self.assertFalse(sparse_tensor.is_sparse(3))
61 self.assertFalse(sparse_tensor.is_sparse("foo"))
62 self.assertFalse(sparse_tensor.is_sparse(np.array(3)))
64 sparse_tensor.is_sparse(sparse_tensor.SparseTensor([[0]], [0], [1])))
66 sparse_tensor.is_sparse(
Dsparse_tensor.py101 if not is_sparse(sparse_tensor_value):
292 def is_sparse(x): function
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dmatmul_op.cc32 explicit MatMulOp(OpKernelConstruction* ctx, bool is_sparse = false) in MatMulOp() argument
33 : XlaOpKernel(ctx), is_sparse_(is_sparse) { in MatMulOp()
36 if (is_sparse) { in MatMulOp()
/external/tensorflow/tensorflow/python/training/
Dproximal_gradient_descent_test.py144 def applyOptimizer(self, opt, steps=5, is_sparse=False): argument
145 if is_sparse:
169 if is_sparse:
191 is_sparse=True)
195 gradient_descent.GradientDescentOptimizer(3.0), is_sparse=True)
Dproximal_adagrad_test.py177 def applyOptimizer(self, opt, steps=5, is_sparse=False): argument
178 if is_sparse:
202 if is_sparse:
243 is_sparse=True)
249 is_sparse=True)
Dftrl_test.py306 def applyOptimizer(self, opt, dtype, steps=5, is_sparse=False): argument
307 if is_sparse:
327 if is_sparse:
382 is_sparse=True)
388 is_sparse=True)
406 is_sparse=True)
412 is_sparse=True)
/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Dftrl_test.py309 def applyOptimizer(self, opt, dtype, steps=5, is_sparse=False): argument
310 if is_sparse:
330 if is_sparse:
385 is_sparse=True)
391 is_sparse=True)
409 is_sparse=True)
415 is_sparse=True)
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dfeature_column_test.py468 c = fc._real_valued_var_len_column("ccc", is_sparse=True)
469 self.assertTrue(c.is_sparse)
475 d4 = fc._real_valued_var_len_column("d4", is_sparse=True)
477 self.assertEqual(d4.is_sparse, True)
483 rvc = fc._real_valued_var_len_column("rvc", is_sparse=True)
490 "rvc", default_value=0, is_sparse=False)
501 "rvc", dtype=dtypes.int32, default_value=0, is_sparse=True)
510 "rvc", dtype=dtypes.string, default_value="", is_sparse=True)
617 "sparse_real_valued1", is_sparse=True)
649 fc._real_valued_var_len_column("bbb", is_sparse=True), [0])
[all …]
Dfeature_column.py1695 if self.is_sparse:
1716 if self.is_sparse:
1746 if not self.is_sparse:
1757 is_sparse=False): argument
1797 if default_value is None and not is_sparse:
1812 is_sparse)
Dfeature_column_ops_test.py57 "rating", is_sparse=True)
75 "rating", normalizer=square_fn, is_sparse=True)
566 feature_column._real_valued_var_len_column("rating", is_sparse=True))
2180 is_sparse=False)
/external/tensorflow/tensorflow/contrib/data/python/kernel_tests/
Dslide_dataset_op_test.py224 self.assertTrue(sparse_tensor.is_sparse(actual))
259 self.assertTrue(sparse_tensor.is_sparse(actual))
287 self.assertTrue(sparse_tensor.is_sparse(actual))
297 self.assertTrue(sparse_tensor.is_sparse(actual))
/external/tensorflow/tensorflow/contrib/tensor_forest/python/ops/
Ddata_ops.py127 is_sparse = isinstance(data[k], sparse_tensor.SparseTensor)
128 if is_sparse:
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dtest_base.py91 if sparse_tensor.is_sparse(result_value):
184 if sparse_tensor.is_sparse(op1[i]):
Dfrom_tensor_slices_test.py120 if sparse_tensor.is_sparse(c) else c.shape[1:] for c in components
153 if sparse_tensor.is_sparse(component):
Dfrom_tensors_test.py87 if sparse_tensor.is_sparse(c) else c.shape for c in components
/external/tensorflow/tensorflow/python/data/util/
Dsparse.py131 if sparse_tensor.is_sparse(tensor) else tensor
Dstructure_test.py485 if sparse_tensor.is_sparse(expected):
/external/tensorflow/tensorflow/python/data/experimental/ops/
Dscan_ops.py43 if sparse_tensor.is_sparse(t) else ops.convert_to_tensor(
/external/avb/
Davbtool708 self.is_sparse = False
815 self.is_sparse = True
840 if not self.is_sparse:
871 if not self.is_sparse:
904 if not self.is_sparse:
949 if not self.is_sparse:
1002 if not self.is_sparse:
2202 ' (Sparse)' if image.is_sparse else ''))
2925 assert not image.is_sparse
3122 assert not image.is_sparse
[all …]
/external/tensorflow/tensorflow/python/ops/
Dmath_grad.py1177 is_sparse = {
1187 assert t1 in is_sparse and t2 in is_sparse
1188 t1_sparse = is_sparse[t1]
1189 t2_sparse = is_sparse[t2]
/external/tensorflow/tensorflow/contrib/keras/api/keras/backend/
D__init__.py80 from tensorflow.python.keras.backend import is_sparse
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_arrays.py215 if issparse(input_data) and not K.is_sparse(feed_tensor):
/external/tensorflow/tensorflow/python/keras/
Dbackend.py620 def is_sparse(tensor): function
664 if is_sparse(tensor):
1474 if is_sparse(x):
2348 if py_all(is_sparse(x) for x in tensors):
3070 if is_sparse(tensor):
/external/tensorflow/tensorflow/python/data/ops/
Ddataset_ops.py1269 if sparse_tensor_lib.is_sparse(t) else ops.convert_to_tensor(
2070 if sparse_tensor_lib.is_sparse(t) else ops.convert_to_tensor(
2094 if sparse_tensor_lib.is_sparse(t) else ops.convert_to_tensor(

12