Home
last modified time | relevance | path

Searched refs:num_sparse (Results 1 – 25 of 29) sorted by relevance

12

/external/tensorflow/tensorflow/python/util/
Dexample_parser_configuration.py50 num_sparse = parse_example_op.get_attr("Nsparse")
52 total_features = num_dense + num_sparse
58 if len(sparse_types) != num_sparse:
61 (len(sparse_types), num_sparse))
90 dense_keys_start = sparse_keys_start + num_sparse
95 sparse_values_start = num_sparse
96 sparse_shapes_start = sparse_values_start + num_sparse
97 dense_values_start = sparse_shapes_start + num_sparse
120 for i in range(num_sparse):
140 num_sparse = parse_example_op.get_attr("num_sparse")
[all …]
/external/tensorflow/tensorflow/core/example/
Dexample_parser_configuration.cc58 auto num_sparse = attr_map.at("Nsparse").i(); in ExtractExampleParserConfiguration() local
61 var_len_features->resize(num_sparse); in ExtractExampleParserConfiguration()
80 if (sparse_types.list().type_size() != num_sparse) { in ExtractExampleParserConfiguration()
83 " elements != NSparse attr: ", num_sparse); in ExtractExampleParserConfiguration()
112 int dense_keys_start = sparse_keys_start + num_sparse; in ExtractExampleParserConfiguration()
115 for (int i = 0; i < num_sparse; ++i) { in ExtractExampleParserConfiguration()
133 int sparse_values_output_start = sparse_indices_output_start + num_sparse; in ExtractExampleParserConfiguration()
134 int sparse_shapes_output_start = sparse_values_output_start + num_sparse; in ExtractExampleParserConfiguration()
135 int dense_values_output_start = sparse_shapes_output_start + num_sparse; in ExtractExampleParserConfiguration()
139 for (int i = 0; i < num_sparse; ++i) { in ExtractExampleParserConfiguration()
/external/tensorflow/tensorflow/core/util/
Dexample_proto_helper.h173 TF_RETURN_IF_ERROR(ctx->GetAttr("Nsparse", &num_sparse));
179 TF_RETURN_IF_ERROR(ctx->GetAttr("num_sparse", &num_sparse));
189 int64 num_sparse; member
216 int num_sparse; in Init() local
217 TF_RETURN_IF_ERROR(ctx->GetAttr("num_sparse", &num_sparse)); in Init()
218 if (num_sparse != sparse_keys.size() || num_sparse != sparse_types.size()) { in Init()
220 "num_sparse (", num_sparse, ") must match the size of sparse_keys (", in Init()
Dexample_proto_helper.cc420 if (static_cast<size_t>(num_sparse) != sparse_types.size()) { in FinishInit()
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/
DParseSingleExample.pbtxt14 number_attr: "num_sparse"
23 number_attr: "num_sparse"
30 name: "num_sparse"
DParseExampleV2.pbtxt30 number_attr: "num_sparse"
39 number_attr: "num_sparse"
66 name: "num_sparse"
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DParseSingleExample.pbtxt14 number_attr: "num_sparse"
23 number_attr: "num_sparse"
30 name: "num_sparse"
DParseExampleV2.pbtxt30 number_attr: "num_sparse"
39 number_attr: "num_sparse"
66 name: "num_sparse"
/external/tensorflow/tensorflow/core/ops/
Dparsing_ops_test.cc88 auto set_outputs = [&op](int num_sparse, int num_dense, in TEST()
99 .Input(NodeOutList(num_sparse, string_in)) in TEST()
102 .Attr("sparse_types", DataTypeList(num_sparse, DT_FLOAT)) in TEST()
305 auto set_outputs = [&op](int num_sparse, int num_dense, int num_ragged, in TEST()
320 .Attr("num_sparse", num_sparse) in TEST()
321 .Attr("sparse_types", DataTypeList(num_sparse, DT_FLOAT)) in TEST()
Dragged_array_ops.cc81 int num_sparse; in __anoncd0b9d3b0102() local
82 TF_RETURN_IF_ERROR(c->GetAttr("Nsparse", &num_sparse)); in __anoncd0b9d3b0102()
99 int dense_start = num_ragged * 2 + num_sparse * 3; in __anoncd0b9d3b0102()
Dparsing_ops.cc45 void AddSparseOutputShapes(int num_sparse, const ShapeHandle input_shape, in AddSparseOutputShapes() argument
53 for (int i = 0; i < num_sparse; ++i) { // sparse_indices in AddSparseOutputShapes()
56 for (int i = 0; i < num_sparse; ++i) { // sparse_values in AddSparseOutputShapes()
59 for (int i = 0; i < num_sparse; ++i) { // sparse_dense_shapes in AddSparseOutputShapes()
170 AddSparseOutputShapes(attrs.num_sparse, input, 1, c, &output_idx); in __anonb04296470402()
218 AddSparseOutputShapes(attrs.num_sparse, input, 1, c, &output_idx); in __anonb04296470502()
Dops.pbtxt28585 number_attr: "num_sparse"
28594 number_attr: "num_sparse"
28621 name: "num_sparse"
29146 number_attr: "num_sparse"
29155 number_attr: "num_sparse"
29162 name: "num_sparse"
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_ParseSingleExample.pbtxt25 name: "num_sparse"
34 A list of `num_sparse` strings.
48 A list of `num_sparse` types; the data types of data in each
Dapi_def_ParseExampleV2.pbtxt58 name: "num_sparse"
66 A list of `num_sparse` types; the data types of data in each Feature
/external/tensorflow/tensorflow/core/kernels/
Dragged_cross_op.cc298 int num_sparse; in RaggedCrossOp() local
299 OP_REQUIRES_OK(context, context->GetAttr("Nsparse", &num_sparse)); in RaggedCrossOp()
313 OP_REQUIRES(context, num_sparse == sparse_values_types_.size(), in RaggedCrossOp()
383 const auto num_sparse = sparse_indices_list.size(); in ValidateInput() local
396 for (int i = 0; i < num_sparse; ++i) { in ValidateInput()
423 for (int i = 0; i < num_sparse; ++i) { in ValidateInput()
Dexample_parsing_ops.cc156 if (sparse_keys_t.size() != attrs_.num_sparse) { in CheckInputShapes()
159 sparse_keys_t.size(), " vs. ", attrs_.num_sparse); in CheckInputShapes()
221 config.sparse.reserve(attrs_.num_sparse); in MakeConfig()
222 for (int d = 0; d < attrs_.num_sparse; ++d) { in MakeConfig()
268 for (int d = 0; d < attrs_.num_sparse; ++d) { in WriteOutput()
Dexample_parsing_ops_test.cc260 int num_sparse = opt.benchmark_type == kSparse ? num_keys : 0; in ParseExampleV2() local
270 .Attr("num_sparse", num_sparse) in ParseExampleV2()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/
Dparse_example_v2.mlir14 …pe$DT_FLOAT"], dense_shapes = [#tf.shape<>, #tf.shape<>], device = "", num_sparse = 2 : i64, ragge…
45 // CHECK-NEXT: key: "num_sparse"
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/
Dparse_example_v2.pbtxt194 key: "num_sparse"
/external/tensorflow/tensorflow/lite/kernels/parse_example/
Dparse_example.cc730 int num_sparse = 0; in PrepareParseExample() local
736 num_sparse = value.AsInt32(); in PrepareParseExample()
742 data->sparse_size = num_sparse; in PrepareParseExample()
/external/tensorflow/tensorflow/python/ops/
Dparsing_ops.py357 num_sparse=len(params.sparse_keys),
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/
Dtf-ops.mlir3524 …fault_0, %dense_default_1) {dense_shapes = [#tf.shape<>, #tf.shape<>], num_sparse = 0 : i64, resul…
3533 …fault_0, %dense_default_1) {dense_shapes = [#tf.shape<>, #tf.shape<>], num_sparse = 0 : i64, resul…
3542 …sparse_keys, %empty_str_vector, %empty_str_vector) {dense_shapes = [], num_sparse = 2 : i64, resul…
3550 …// expected-error @+1 {{attribute 'num_sparse' should be the same as the length of attribute 'spar…
3551 …sparse_keys, %empty_str_vector, %empty_str_vector) {dense_shapes = [], num_sparse = 3 : i64, resul…
3560 …sparse_keys, %empty_str_vector, %empty_str_vector) {dense_shapes = [], num_sparse = 2 : i64, resul…
3569 …sparse_keys, %empty_str_vector, %empty_str_vector) {dense_shapes = [], num_sparse = 2 : i64, resul…
3578 …empty_str_vector, %empty_str_vector, %ragged_keys) {dense_shapes = [], num_sparse = 0 : i64, resul…
3587 …empty_str_vector, %empty_str_vector, %ragged_keys) {dense_shapes = [], num_sparse = 0 : i64, resul…
/external/tensorflow/tensorflow/python/ops/parallel_for/
Dpfor.py4123 num_sparse = pfor_input.get_attr("num_sparse")
4138 num_sparse=num_sparse,
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops_n_z.cc372 if (op.num_sparse() != sparse_types_count) { in Verify()
Dtf_ops.td516 Confined<I64Attr, [IntMinValue<0>]>:$num_sparse,

12