Home
last modified time | relevance | path

Searched refs:sparse_indices (Results 1 – 25 of 38) sorted by relevance

12

/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_SparseToDense.pbtxt4 name: "sparse_indices"
6 0-D, 1-D, or 2-D. `sparse_indices[i]` contains the complete
19 1-D. Values corresponding to each row of `sparse_indices`,
27 `sparse_indices`.
48 # If sparse_indices is scalar
49 dense[i] = (i == sparse_indices ? sparse_values : default_value)
51 # If sparse_indices is a vector, then for each i
52 dense[sparse_indices[i]] = sparse_values[i]
54 # If sparse_indices is an n by d matrix, then for each i in [0, n)
55 dense[sparse_indices[i][0], ..., sparse_indices[i][d-1]] = sparse_values[i]
Dapi_def_AddManySparseToTensorsMap.pbtxt4 name: "sparse_indices"
7 `sparse_indices[:, 0]` must be ordered values in `[0, N)`.
45 A `SparseTensor` of rank `R` is represented by three tensors: `sparse_indices`,
48 ```sparse_indices.shape[1] == sparse_shape.shape[0] == R```
51 having a first `sparse_indices` column taking values between `[0, N)`, where
Dapi_def_AddSparseToTensorsMap.pbtxt4 name: "sparse_indices"
43 A `SparseTensor` is represented by three tensors: `sparse_indices`,
Dapi_def_SerializeSparse.pbtxt4 name: "sparse_indices"
Dapi_def_SerializeManySparse.pbtxt4 name: "sparse_indices"
Dapi_def_TakeManySparseFromTensorsMap.pbtxt11 name: "sparse_indices"
/external/tensorflow/tensorflow/python/kernel_tests/
Dsparse_to_dense_op_py_test.py29 def _SparseToDense(sparse_indices, argument
35 sparse_indices,
125 sparse_indices=[[1], [10]],
135 sparse_indices=[[1], [10]],
145 sparse_indices=[[1], [1]],
153 sparse_indices=[[1], [1]],
163 sparse_indices=[[2], [1]],
171 sparse_indices=[[2], [1]],
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/
Dsdca_optimizer.py111 sparse_indices = array_ops.where(
114 sparse_values = array_ops.gather_nd(dense_tensor, sparse_indices)
120 value=sparse_indices, num_or_size_splits=2, axis=1)[0], [-1]),
123 value=sparse_indices, num_or_size_splits=2, axis=1)[1], [-1]),
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/
Dinput_data.cc105 const Tensor& sparse_indices, in set_input_tensors() argument
111 if (sparse_indices.shape().dims() == 2) { in set_input_tensors()
113 new SparseIndicesStorageType(sparse_indices.tensor<int64, 2>())); in set_input_tensors()
Dinput_data.h69 void set_input_tensors(const Tensor& dense, const Tensor& sparse_indices,
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/ops/
Dsdca_ops.py320 sparse_indices = []
324 sparse_indices.append(
328 sparse_weights.append(array_ops.gather(w, sparse_indices[-1]))
338 sparse_indices,
354 sparse_indices, sfw):
/external/tensorflow/tensorflow/contrib/tensor_forest/python/
Dtensor_forest.py601 sparse_indices = []
605 sparse_indices = sparse_features.indices
615 sparse_indices,
632 sparse_indices,
661 sparse_indices = []
665 sparse_indices = sparse_features.indices
674 sparse_indices,
/external/tensorflow/tensorflow/core/kernels/
Dexample_parsing_ops.cc147 OpOutputList sparse_indices; in Compute() local
151 OP_REQUIRES_OK(ctx, ctx->output_list("sparse_indices", &sparse_indices)); in Compute()
158 sparse_indices.set(d, result.sparse_indices[d]); in Compute()
243 OpOutputList sparse_indices; in Compute() local
247 OP_REQUIRES_OK(ctx, ctx->output_list("sparse_indices", &sparse_indices)); in Compute()
254 sparse_indices.set(d, result.sparse_indices[d]); in Compute()
Dsparse_to_dense_op_test.cc218 Tensor sparse_indices(DT_INT32, TensorShape({N, NDIM})); in BM_SparseToDense() local
226 auto sparse_indices_t = sparse_indices.matrix<int32>(); in BM_SparseToDense()
233 {&sparse_indices, &output_shape, &sparse_values, &default_value}) { in BM_SparseToDense()
Dsdca_ops_test.cc160 std::vector<NodeBuilder::NodeOut> sparse_indices; in GetGraphs() local
163 sparse_indices.push_back( in GetGraphs()
220 .Input(sparse_indices) in GetGraphs()
/external/tensorflow/tensorflow/compiler/xla/
Dliteral_util.h109 const SparseIndexArray* sparse_indices(
111 SparseIndexArray* sparse_indices(const ShapeIndex& shape_index = {});
689 SparseIndexArray* sparse_indices() const { return sparse_indices_; } in sparse_indices() function
690 void set_sparse_indices(SparseIndexArray* sparse_indices) { in set_sparse_indices() argument
691 sparse_indices_ = sparse_indices; in set_sparse_indices()
1131 int64 last_element = p.sparse_indices()->index_count(); in AppendSparseElement()
1133 p.sparse_indices()->Append(multi_index); in AppendSparseElement()
1242 *this->root_piece().sparse_indices() = std::move(indices); in PopulateSparse()
1246 this->root_piece().sparse_indices()->SortWithValues(root_data); in PopulateSparse()
1248 DCHECK(this->root_piece().sparse_indices()->Validate(shape())); in PopulateSparse()
Dliteral_util.cc121 delete piece.sparse_indices(); in DeallocateBuffers()
174 const SparseIndexArray* Literal::sparse_indices( in sparse_indices() function in xla::Literal
176 return piece(shape_index).sparse_indices(); in sparse_indices()
179 SparseIndexArray* Literal::sparse_indices(const ShapeIndex& shape_index) { in sparse_indices() function in xla::Literal
180 return piece(shape_index).sparse_indices(); in sparse_indices()
271 dest_piece.set_sparse_indices(src_piece.sparse_indices()); in DecomposeTuple()
429 delete dest_piece.sparse_indices(); in MoveFrom()
430 dest_piece.set_sparse_indices(src_piece.sparse_indices()); in MoveFrom()
1004 CHECK_LT(sparse_element_number, p.sparse_indices()->index_count()); in GetSparseIndex()
1005 return p.sparse_indices()->At(sparse_element_number); in GetSparseIndex()
[all …]
/external/tensorflow/tensorflow/core/util/
Dexample_proto_fast_parsing.h67 std::vector<Tensor> sparse_indices; member
Dexample_proto_fast_parsing.cc1003 result->sparse_indices.emplace_back(DT_INT64, indices_shape); in FastParseExample()
1004 Tensor* indices = &result->sparse_indices.back(); in FastParseExample()
1187 result->sparse_indices.emplace_back(); in FastParseSingleExample()
1377 Tensor* out_indices = &result->sparse_indices[d]; in FastParseSingleExample()
1448 result->sparse_indices[d] = Tensor(DT_INT64, TensorShape({0, 1})); in FastParseSingleExample()
/external/tensorflow/tensorflow/python/ops/
Dparsing_ops.py715 (sparse_indices, sparse_values, sparse_shapes, dense_values) = outputs
719 in zip(sparse_indices, sparse_values, sparse_shapes)]
1406 (sparse_indices, sparse_values, sparse_shapes, dense_values) = outputs
1411 shape) in zip(sparse_indices, sparse_values, sparse_shapes)
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/
Dtree_utils.cc555 GetFeatureFnType GetSparseFunctor(const Tensor& sparse_indices, in GetSparseFunctor() argument
557 if (sparse_indices.shape().dims() == 2) { in GetSparseFunctor()
558 const auto indices = sparse_indices.matrix<int64>(); in GetSparseFunctor()
Dtree_utils.h161 GetFeatureFnType GetSparseFunctor(const Tensor& sparse_indices,
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/utils/
Dsparse_column_iterable.h115 const TTypes<int64>::ConstMatrix& sparse_indices() const { return ix_; } in sparse_indices() function
Dexamples_iterable.h117 .sparse_indices();
/external/tensorflow/tensorflow/contrib/boosted_trees/kernels/
Dquantile_ops.cc416 const auto sparse_indices = in Compute() local
428 const int64 example_id = sparse_indices(j, 0); in Compute()
800 const auto sparse_indices = in Compute() local
808 const int64 example_id = sparse_indices(j, 0); in Compute()

12