Home
last modified time | relevance | path

Searched refs:dense_features (Results 1 – 25 of 27) sorted by relevance

12

/external/libtextclassifier/utils/
Dtoken-feature-extractor_test.cc47 std::vector<float> dense_features; in TEST_F() local
50 &dense_features); in TEST_F()
73 EXPECT_THAT(dense_features, testing::ElementsAreArray({1.0, 1.0})); in TEST_F()
76 dense_features.clear(); in TEST_F()
78 &dense_features); in TEST_F()
104 EXPECT_THAT(dense_features, testing::ElementsAreArray({-1.0, 0.0})); in TEST_F()
117 std::vector<float> dense_features; in TEST_F() local
120 &dense_features); in TEST_F()
124 EXPECT_THAT(dense_features, testing::ElementsAreArray({1.0, 1.0})); in TEST_F()
127 dense_features.clear(); in TEST_F()
[all …]
Dtoken-feature-extractor.cc84 std::vector<float>* dense_features) const { in Extract()
85 if (!dense_features) { in Extract()
91 *dense_features = ExtractDenseFeatures(token, is_in_span); in Extract()
106 std::vector<float> dense_features; in ExtractDenseFeatures() local
114 dense_features.push_back(1.0); in ExtractDenseFeatures()
116 dense_features.push_back(-1.0); in ExtractDenseFeatures()
120 dense_features.push_back(1.0); in ExtractDenseFeatures()
122 dense_features.push_back(-1.0); in ExtractDenseFeatures()
129 dense_features.push_back(1.0); in ExtractDenseFeatures()
132 dense_features.push_back(-1.0); in ExtractDenseFeatures()
[all …]
Dtoken-feature-extractor.h78 std::vector<float>* dense_features) const;
/external/libtextclassifier/actions/
Dfeature-processor.cc82 const std::vector<float>& dense_features, in AppendFeatures() argument
100 output_features->insert(output_features->end(), dense_features.begin(), in AppendFeatures()
101 dense_features.end()); in AppendFeatures()
110 std::vector<float> dense_features; in AppendTokenFeatures() local
112 &sparse_features, &dense_features)) { in AppendTokenFeatures()
116 return AppendFeatures(sparse_features, dense_features, embedding_executor, in AppendTokenFeatures()
Dfeature-processor.h44 const std::vector<float>& dense_features,
/external/tensorflow/tensorflow/contrib/tensor_forest/python/ops/
Ddata_ops.py124 dense_features = []
145 col_spec.name = GetColumnName(k, len(dense_features))
154 dense_features.append(CastToFloat(data[k]))
158 if dense_features:
159 processed_dense_features = array_ops.concat(dense_features, 1)
/external/tensorflow/tensorflow/core/kernels/tensor_forest/
Dprediction_ops.cc42 auto dense_features = dense_features_t->matrix<float>(); in Compute() local
63 auto traverse = [this, &out, &dense_features, decision_tree_resource, in Compute()
69 decision_tree_resource->TraverseTree(example_id, &dense_features); in Compute()
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/
Dsdca_optimizer.py149 dense_features, sparse_features, sparse_feature_with_values = [], [], []
168 dense_features.append(transformed_tensor)
256 dense_features=dense_features,
/external/tensorflow/tensorflow/core/kernels/
Dsdca_ops_test.cc192 std::vector<NodeBuilder::NodeOut> dense_features; in GetGraphs() local
193 dense_features.reserve(num_dense_feature_groups); in GetGraphs()
195 dense_features.push_back(NodeBuilder::NodeOut( in GetGraphs()
217 .Input(dense_features) in GetGraphs()
Dsdca_internal.cc477 auto dense_features = dense_features_inputs[i].template matrix<float>(); in CreateDenseFeatureRepresentation() local
480 new Example::DenseVector{dense_features, example_id}); in CreateDenseFeatureRepresentation()
482 if (!weights.DenseIndexValid(i, dense_features.dimension(1) - 1)) { in CreateDenseFeatureRepresentation()
486 dense_features.dimension(1)); in CreateDenseFeatureRepresentation()
/external/libtextclassifier/annotator/
Dfeature-processor.cc809 std::vector<float> dense_features; in AppendTokenFeaturesWithCache() local
812 /*sparse_features=*/nullptr, &dense_features)) { in AppendTokenFeaturesWithCache()
820 output_features->insert(output_features->end(), dense_features.begin(), in AppendTokenFeaturesWithCache()
821 dense_features.end()); in AppendTokenFeaturesWithCache()
828 std::vector<float> dense_features; in AppendTokenFeaturesWithCache() local
831 &sparse_features, &dense_features)) { in AppendTokenFeaturesWithCache()
858 output_features->insert(output_features->end(), dense_features.begin(), in AppendTokenFeaturesWithCache()
859 dense_features.end()); in AppendTokenFeaturesWithCache()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_TensorForestTreePredict.pbtxt17 name: "dense_features"
Dapi_def_SdcaOptimizerV2.pbtxt24 name: "dense_features"
Dapi_def_SdcaOptimizer.pbtxt23 name: "dense_features"
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/
Dtree_utils.cc541 const auto dense_features = dense.matrix<float>(); in GetDenseFunctor() local
544 return [dense_features](int32 i, int32 feature) { in GetDenseFunctor()
545 return dense_features(i, feature); in GetDenseFunctor()
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.train.pbtxt101 …_indices\', \'sparse_feature_indices\', \'sparse_feature_values\', \'dense_features\', \'example_w…
Dtensorflow.raw_ops.pbtxt3229 …_indices\', \'sparse_feature_indices\', \'sparse_feature_values\', \'dense_features\', \'example_w…
3233 …_indices\', \'sparse_feature_indices\', \'sparse_feature_values\', \'dense_features\', \'example_w…
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/ops/
Dsdca_ops.py318 dense_features = self._convert_n_to_tensor(examples['dense_features'])
324 result_dense += math_ops.matmul(dense_features[i],
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/kernel_tests/
Dsdca_ops_test.py107 dense_features=[],
126 dense_features=[],
198 dense_features=dense_tensors,
/external/tensorflow/tensorflow/python/feature_column/
Dfeature_column_v2_test.py3180 dense_features = fc.DenseFeatures(fc.numeric_column('a'))
3181 inputs = self.evaluate(dense_features(features))
3211 dense_features = fc.DenseFeatures([embedding_column])
3214 inputs = dense_features(features)
3215 variables = dense_features.variables
3225 _ = dense_features(features)
3227 self.assertEqual(variables[0], dense_features.variables[0])
3256 dense_features = fc.DenseFeatures([embedding_column])
3260 matrix = dense_features(features)
3358 dense_features = fc.DenseFeatures([price1, price2])
[all …]
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.train.pbtxt429 …_indices\', \'sparse_feature_indices\', \'sparse_feature_values\', \'dense_features\', \'example_w…
Dtensorflow.raw_ops.pbtxt3229 …_indices\', \'sparse_feature_indices\', \'sparse_feature_values\', \'dense_features\', \'example_w…
3233 …_indices\', \'sparse_feature_indices\', \'sparse_feature_values\', \'dense_features\', \'example_w…
/external/tensorflow/tensorflow/go/op/
Dwrappers.go3655 func TensorForestTreePredict(scope *Scope, tree_handle tf.Output, dense_features tf.Output, logits_…
3663 tree_handle, dense_features,
8490 …arse_feature_indices []tf.Output, sparse_feature_values []tf.Output, dense_features []tf.Output, e…
8501 …eature_indices), tf.OutputList(sparse_feature_values), tf.OutputList(dense_features), example_weig…
16274 …arse_feature_indices []tf.Output, sparse_feature_values []tf.Output, dense_features []tf.Output, e…
16285 …eature_indices), tf.OutputList(sparse_feature_values), tf.OutputList(dense_features), example_weig…
/external/tensorflow/tensorflow/core/ops/
Dops.pbtxt33489 name: "dense_features"
33608 name: "dense_features"
41310 name: "dense_features"
/external/tensorflow/tensorflow/core/ops/compat/
Dops_history.v2.pbtxt67177 name: "dense_features"
67295 name: "dense_features"
67414 name: "dense_features"
84162 name: "dense_features"

12