Home
last modified time | relevance | path

Searched refs:sparse_keys (Results 1 – 25 of 42) sorted by relevance

12

/external/tensorflow/tensorflow/lite/kernels/parse_example/
Dparse_example_test.cc157 std::vector<std::string> sparse_keys, in ParseExampleOpModel() argument
168 std::for_each(sparse_keys.begin(), sparse_keys.end(), [&](auto&&) { in ParseExampleOpModel()
178 if (!sparse_keys.empty()) { in ParseExampleOpModel()
179 for (int i = 0; i < sparse_keys.size(); i++) { in ParseExampleOpModel()
182 for (int i = 0; i < sparse_keys.size(); i++) { in ParseExampleOpModel()
185 for (int i = 0; i < sparse_keys.size(); i++) { in ParseExampleOpModel()
213 for (const auto& key : sparse_keys) { in ParseExampleOpModel()
/external/tensorflow/tensorflow/python/ops/
Dparsing_ops.py353 sparse_keys=params.sparse_keys,
357 num_sparse=len(params.sparse_keys),
374 zip(params.sparse_keys + params.dense_keys + params.ragged_keys,
629 context_sparse_keys=context.sparse_keys,
632 feature_list_sparse_keys=feature_list.sparse_keys,
639 Ncontext_sparse=len(context.sparse_keys),
640 Nfeature_list_sparse=len(feature_list.sparse_keys),
684 context.sparse_keys + context.dense_keys + context.ragged_keys,
689 feature_list.sparse_keys + feature_list.dense_keys +
Dparsing_config.py392 sparse_keys=None, argument
405 sparse_keys = [] if sparse_keys is None else sparse_keys
416 self.sparse_keys = sparse_keys
463 return len(self.dense_keys) + len(self.sparse_keys) + len(self.ragged_keys)
533 if key in self.sparse_keys:
534 original_dtype = self.sparse_types[self.sparse_keys.index(key)]
539 self.sparse_keys.append(key)
632 if len(self.sparse_types) != len(self.sparse_keys):
635 (len(self.sparse_types), len(self.sparse_keys)))
646 sparse_key_set = set(self.sparse_keys)
/external/tensorflow/tensorflow/core/grappler/optimizers/data/vectorization/
Dparse_single_example_vectorizer.cc63 std::vector<NodeBuilder::NodeOut> sparse_keys; in Vectorize() local
64 TF_RETURN_IF_ERROR(make_list_input_from_attr("sparse_keys", &sparse_keys)); in Vectorize()
76 .Input(sparse_keys) in Vectorize()
/external/tensorflow/tensorflow/core/kernels/
Dexample_parsing_ops_test.cc160 std::vector<NodeBuilder::NodeOut> sparse_keys; in ParseExample() local
183 sparse_keys.emplace_back(test::graph::Constant(g, key)); in ParseExample()
193 .Input(sparse_keys) in ParseExample()
256 auto& sparse_keys = (bm_type == kSparse) ? keys_t : empty_keys; in ParseExampleV2() local
266 .Input(test::graph::Constant(g, sparse_keys)) in ParseExampleV2()
290 std::vector<string> sparse_keys; in ParseSingleExample() local
312 sparse_keys.push_back(key), sparse_types.push_back(opt.filler.dtype); in ParseSingleExample()
321 .Attr<int64>("num_sparse", sparse_keys.size()) in ParseSingleExample()
322 .Attr("sparse_keys", sparse_keys) in ParseSingleExample()
Dexample_parsing_ops.cc301 metrics::RecordParseSparseFeature(attrs_.sparse_keys.size()); in ParseSingleExampleOp()
360 for (int d = 0; d < attrs_.sparse_keys.size(); ++d) { in Compute()
361 config.sparse.push_back({attrs_.sparse_keys[d], attrs_.sparse_types[d]}); in Compute()
380 for (int d = 0; d < attrs_.sparse_keys.size(); ++d) { in Compute()
569 const Tensor* dense_keys, const Tensor* sparse_keys, in MakeContextConfig() argument
580 sparse_keys in MakeContextConfig()
581 ? gtl::ArraySlice<tstring>(sparse_keys->flat<tstring>().data(), in MakeContextConfig()
628 const Tensor* dense_keys, const Tensor* sparse_keys, in MakeFeatureListConfig() argument
639 sparse_keys in MakeFeatureListConfig()
640 ? gtl::ArraySlice<tstring>(sparse_keys->flat<tstring>().data(), in MakeFeatureListConfig()
/external/tensorflow/tensorflow/core/kernels/fuzzing/
Dexample_proto_fast_parsing_fuzz.cc39 std::vector<Output> sparse_keys; // Empty. in BuildGraph() local
47 sparse_keys, dense_keys, dense_defaults, sparse_types, in BuildGraph()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_ParseExampleV2.pbtxt22 name: "sparse_keys"
67 given in sparse_keys.
76 given in ragged_keys (where `num_ragged = sparse_keys.size()`).
85 given in ragged_keys (where `num_ragged = sparse_keys.size()`).
Dapi_def_ParseSingleExample.pbtxt28 must match the lengths of `sparse_keys` and `sparse_types`.
32 name: "sparse_keys"
49 Feature given in sparse_keys.
Dapi_def_ExperimentalParseExampleDataset.pbtxt12 name: "sparse_keys"
28 A list of `DTypes` of the same length as `sparse_keys`.
Dapi_def_ParseExampleDataset.pbtxt12 name: "sparse_keys"
28 A list of `DTypes` of the same length as `sparse_keys`.
Dapi_def_ParseExampleDatasetV2.pbtxt12 name: "sparse_keys"
28 A list of `DTypes` of the same length as `sparse_keys`.
Dapi_def_ParseExample.pbtxt21 name: "sparse_keys"
53 given in sparse_keys.
/external/tensorflow/tensorflow/python/util/
Dexample_parser_configuration.py153 sparse_keys = fetched[0].tolist()
157 assert len(sparse_keys) == num_sparse
191 key = sparse_keys[i]
/external/tensorflow/tensorflow/core/util/
Dexample_proto_helper.h210 TF_RETURN_IF_ERROR(ctx->GetAttr("sparse_keys", &sparse_keys)); in Init()
218 if (num_sparse != sparse_keys.size() || num_sparse != sparse_types.size()) { in Init()
221 sparse_keys.size(), ") and sparse_types (", sparse_types.size(), ")"); in Init()
229 std::vector<tstring> sparse_keys; member
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DExperimentalParseExampleDataset.pbtxt20 name: "sparse_keys"
90 name: "sparse_keys"
DParseExampleDataset.pbtxt20 name: "sparse_keys"
97 name: "sparse_keys"
DParseSingleExample.pbtxt35 name: "sparse_keys"
DParseExample.pbtxt12 name: "sparse_keys"
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/
DExperimentalParseExampleDataset.pbtxt20 name: "sparse_keys"
90 name: "sparse_keys"
DParseSingleExample.pbtxt35 name: "sparse_keys"
DParseExample.pbtxt12 name: "sparse_keys"
DParseExampleDatasetV2.pbtxt20 name: "sparse_keys"
/external/tensorflow/tensorflow/python/data/experimental/ops/
Dparsing_ops.py57 self._sparse_keys = params.sparse_keys
71 for (key, value_type) in zip(params.sparse_keys, params.sparse_types):
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/
Dparse_example_v2.pbtxt92 name: "ParseExample/ParseExampleV2/sparse_keys"
168 input: "ParseExample/ParseExampleV2/sparse_keys"

12