Home
last modified time | relevance | path

Searched refs:normalization_options (Results 1 – 14 of 14) sorted by relevance

/external/tflite-support/tensorflow_lite_support/cc/task/vision/utils/
Dimage_tensor_specs.cc109 absl::optional<NormalizationOptions> normalization_options; in GetNormalizationOptionsIfAny() local
111 normalization_options = NormalizationOptions{ in GetNormalizationOptionsIfAny()
118 normalization_options = NormalizationOptions{ in GetNormalizationOptionsIfAny()
132 return normalization_options; in GetNormalizationOptionsIfAny()
144 absl::optional<NormalizationOptions> normalization_options; in BuildInputImageTensorSpecs() local
147 ASSIGN_OR_RETURN(normalization_options, in BuildInputImageTensorSpecs()
204 if (!normalization_options.has_value()) { in BuildInputImageTensorSpecs()
211 normalization_options.value().num_values != in BuildInputImageTensorSpecs()
247 result.normalization_options = normalization_options; in BuildInputImageTensorSpecs()
Dimage_tensor_specs.h73 absl::optional<NormalizationOptions> normalization_options; member
/external/tflite-support/tensorflow_lite_support/cc/task/vision/core/
Dbase_vision_task_api.h202 normalization_options = input_specs_->normalization_options.value(); in Preprocess() local
203 if (normalization_options.num_values == 1) { in Preprocess()
204 float mean_value = normalization_options.mean_values[0]; in Preprocess()
205 float inv_std_value = (1.0f / normalization_options.std_values[0]); in Preprocess()
213 1.0f / normalization_options.std_values[0], in Preprocess()
214 1.0f / normalization_options.std_values[1], in Preprocess()
215 1.0f / normalization_options.std_values[2]}; in Preprocess()
220 normalization_options.mean_values[i % 3]); in Preprocess()
/external/libtextclassifier/native/utils/
Dnormalization.cc25 const NormalizationOptions* normalization_options, in NormalizeText() argument
28 unilib, normalization_options->codepointwise_normalization(), text); in NormalizeText()
Dnormalization.h31 const NormalizationOptions* normalization_options,
/external/libtextclassifier/native/actions/
Dutils.cc88 if (group->normalization_options() == nullptr) { in NormalizeMatchText()
91 return NormalizeText(unilib, group->normalization_options(), match_text); in NormalizeMatchText()
Dactions-suggestions_test.cc243 mapping->normalization_options.reset(new NormalizationOptionsT); in TEST_F()
244 mapping->normalization_options->codepointwise_normalization = in TEST_F()
979 greeting_group->normalization_options.reset(new NormalizationOptionsT); in TEST_F()
980 greeting_group->normalization_options->codepointwise_normalization = in TEST_F()
1033 code_group->normalization_options.reset(new NormalizationOptionsT); in TEST_F()
1034 code_group->normalization_options->codepointwise_normalization = in TEST_F()
Dactions_model.fbs360 normalization_options:NormalizationOptions;
442 normalization_options:NormalizationOptions;
Dactions-suggestions.cc1222 if (mapping->normalization_options() != nullptr) { in SuggestActionsFromAnnotation()
1224 NormalizeText(*unilib_, mapping->normalization_options(), in SuggestActionsFromAnnotation()
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator.cc182 if (group->normalization_options() != nullptr) { in InstantiateClassificationFromDerivation()
183 match_text = NormalizeText(unilib_, group->normalization_options(), in InstantiateClassificationFromDerivation()
Dgrammar-annotator_test.cc428 group->normalization_options.reset(new NormalizationOptionsT); in TEST_F()
429 group->normalization_options->codepointwise_normalization = in TEST_F()
/external/libtextclassifier/native/annotator/
Dannotator_test-include.cc432 pattern->capturing_group[2]->normalization_options.reset( in TEST_F()
435 ->normalization_options->codepointwise_normalization = in TEST_F()
834 pattern->capturing_group[2]->normalization_options.reset( in TEST_F()
837 ->normalization_options->codepointwise_normalization = in TEST_F()
Dannotator.cc2592 if (group->normalization_options() != nullptr) { in SerializedEntityDataFromRegexMatch()
2594 NormalizeText(*unilib_, group->normalization_options(), in SerializedEntityDataFromRegexMatch()
Dmodel.fbs225 normalization_options:NormalizationOptions;