Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/ops/
Dtraining_ops.cc51 template <bool is_sparse, bool is_resource>
55 if (!is_sparse) { in HandleGradAndIndicesInputs()
102 template <bool is_sparse, bool is_resource>
109 TF_RETURN_IF_ERROR(HandleGradAndIndicesInputs<is_sparse, is_resource>( in ApplyProximalGradientDescentShapeFn()
167 template <bool is_sparse, bool is_resource>
178 TF_RETURN_IF_ERROR(HandleGradAndIndicesInputs<is_sparse, is_resource>( in ApplyAdadeltaShapeFn()
243 template <bool is_sparse, bool is_resource>
250 TF_RETURN_IF_ERROR(HandleGradAndIndicesInputs<is_sparse, is_resource>( in ApplyAdagradShapeFn()
305 template <bool is_sparse, bool is_resource>
313 TF_RETURN_IF_ERROR(HandleGradAndIndicesInputs<is_sparse, is_resource>( in ApplyAdagradV2ShapeFn()
[all …]
/external/tensorflow/tensorflow/dtensor/mlir/expansions/
Dsoftmax_spmd_expander.cc372 mlir::Operation* op, bool is_sparse, const Layout& features_layout, in MaybeRelayoutInputs() argument
394 (is_sparse && labels_layout.rank() == 1)) && in MaybeRelayoutInputs()
410 if (!is_sparse && labels_layout.rank() > 0 && in MaybeRelayoutInputs()
442 if (is_sparse) { in MaybeRelayoutInputs()
525 const bool is_sparse = in ExpandOp() local
533 MaybeRelayoutInputs(op, is_sparse, features_layout, labels_layout, in ExpandOp()
552 if (is_sparse) { in ExpandOp()
625 const bool is_sparse = in ComputeLayoutForward() local
651 (is_sparse && labels_layout->rank() == 1)) && in ComputeLayoutForward()
661 if (!is_sparse && labels_layout && (labels_layout->rank() > 0) && in ComputeLayoutForward()
[all …]
Dsoftmax_spmd_expander.h57 StatusOr<Layout> MaybeRelayoutInputs(mlir::Operation* op, bool is_sparse,
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dmatmul_op.cc35 explicit MatMulOp(OpKernelConstruction* ctx, bool is_sparse = false) in MatMulOp() argument
36 : XlaOpKernel(ctx), is_sparse_(is_sparse) { in MatMulOp()
39 if (is_sparse) { in MatMulOp()
/external/tensorflow/tensorflow/python/training/
Dproximal_gradient_descent_test.py135 def applyOptimizer(self, opt, steps=5, is_sparse=False): argument
136 if is_sparse:
159 if is_sparse:
180 is_sparse=True)
183 gradient_descent.GradientDescentOptimizer(3.0), is_sparse=True)
Dproximal_adagrad_test.py172 def applyOptimizer(self, opt, steps=5, is_sparse=False): argument
173 if is_sparse:
197 if is_sparse:
238 is_sparse=True)
244 is_sparse=True)
Dftrl_test.py371 def applyOptimizer(self, opt, dtype, steps=5, is_sparse=False): argument
372 if is_sparse:
392 if is_sparse:
450 is_sparse=True)
456 is_sparse=True)
475 is_sparse=True)
481 is_sparse=True)
/external/tensorflow/tensorflow/dtensor/python/
Ddtensor_device.py225 is_sparse = True
232 is_sparse = False
239 is_sparse)
277 is_sparse = _pywrap_dtensor_device.IsSparseDTensor(
281 if is_sparse:
/external/tensorflow/tensorflow/python/tpu/tests/
Dtpu_embedding_v2_sequence_feature_test.py29 def test_sequence_feature(self, is_sparse): argument
35 if is_sparse:
Dtpu_embedding_v2_valid_input_test.py247 def test_missing_feature(self, is_sparse): argument
256 if is_sparse:
/external/cronet/net/disk_cache/
Ddisk_cache_fuzzer.cc494 bool is_sparse = ce.is_sparse(); in RunCommands() local
507 base::Unretained(this), entry_id, async, is_sparse); in RunCommands()
510 << "\", set_is_sparse = " << is_sparse in RunCommands()
521 sparse_entry_tracker_[entry_info->entry_ptr] = is_sparse; in RunCommands()
578 bool is_sparse = ooce.is_sparse(); in RunCommands() local
604 base::Unretained(this), entry_id, async, is_sparse); in RunCommands()
608 << "\", set_is_sparse = " << is_sparse in RunCommands()
619 sparse_entry_tracker_[entry_info->entry_ptr] = is_sparse; in RunCommands()
Ddisk_cache_fuzzer.proto92 required bool is_sparse = 5; field
108 required bool is_sparse = 6; field
/external/tensorflow/tensorflow/python/framework/
Dsparse_tensor_test.py76 self.assertFalse(sparse_tensor.is_sparse(3))
77 self.assertFalse(sparse_tensor.is_sparse("foo"))
78 self.assertFalse(sparse_tensor.is_sparse(np.array(3)))
80 sparse_tensor.is_sparse(sparse_tensor.SparseTensor([[0]], [0], [1])))
82 sparse_tensor.is_sparse(
Dsparse_tensor.py104 if not is_sparse(sparse_tensor_value):
468 def is_sparse(x): function
/external/tensorflow/tensorflow/python/
Dpywrap_dtensor_device.cc211 const py::capsule& device_info, const bool is_sparse) { in PYBIND11_MODULE() argument
233 if (is_sparse) { in PYBIND11_MODULE()
310 bool is_sparse = IsSparseDTensor( in PYBIND11_MODULE() local
318 return is_sparse; in PYBIND11_MODULE()
/external/tensorflow/tensorflow/dtensor/mlir/
Dhandle_sparsetensors.cc140 const auto is_sparse = main_func.getArgAttrOfType<mlir::BoolAttr>( in CreateComponentTensorsFromSparseTensors() local
142 if (is_sparse) { in CreateComponentTensorsFromSparseTensors()
Dcollectives.cc218 bool is_sparse = IsSparseValue(input); in EmitRelayout() local
278 if (!is_sparse) return all_scatter; in EmitRelayout()
/external/tensorflow/tensorflow/python/data/util/
Dsparse.py127 if sparse_tensor.is_sparse(tensor) else tensor
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dtest_base.py85 elif sparse_tensor.is_sparse(expected):
262 if sparse_tensor.is_sparse(op1[i]) or ragged_tensor.is_ragged(op1[i]):
/external/tensorflow/tensorflow/python/ops/
Dmath_grad.py1756 is_sparse = {}
1757 is_sparse[op.inputs[0].ref()] = op.get_attr("a_is_sparse")
1758 is_sparse[op.inputs[1].ref()] = op.get_attr("b_is_sparse")
1760 is_sparse[grad.ref()] = not context.executing_eagerly() and (
1766 assert t1.ref() in is_sparse and t2.ref() in is_sparse
1767 t1_sparse = is_sparse[t1.ref()]
1768 t2_sparse = is_sparse[t2.ref()]
/external/avb/
Davbtool.py771 self.is_sparse = False
881 self.is_sparse = True
912 if not self.is_sparse:
953 if not self.is_sparse:
992 if not self.is_sparse:
1039 if not self.is_sparse:
1096 if not self.is_sparse:
2444 ' (Sparse)' if image.is_sparse else ''))
3297 assert not image.is_sparse
3512 assert not image.is_sparse
[all …]
/external/libaom/av1/encoder/
Doptical_flow.c43 static INLINE int is_sparse(const OPFL_PARAMS *opfl_params) { in is_sparse() function
1011 if (is_sparse(opfl_params)) { in pyramid_optical_flow()
1021 assert(is_sparse(opfl_params)); in pyramid_optical_flow()
1026 assert(!is_sparse(opfl_params)); in pyramid_optical_flow()
/external/tensorflow/tensorflow/python/keras/utils/
Dtf_utils.py393 def is_sparse(tensor): function
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_cross_op_test.py418 elif sparse_tensor.is_sparse(t):
/external/tensorflow/tensorflow/lite/kernels/
Dfully_connected.cc338 const bool is_sparse = filter->sparsity != nullptr; in PrepareImpl() local
342 if (is_sparse) { in PrepareImpl()
416 if (is_sparse) { in PrepareImpl()

12