/external/tensorflow/tensorflow/lite/tools/signature/ |
D | signature_def_util_wrapper_pybind11.cc | 23 const std::vector<uint8_t>& model_buffer, in WrappedSetSignatureDefMap() argument 26 reinterpret_cast<const char*>(model_buffer.data()), model_buffer.size()); in WrappedSetSignatureDefMap() 48 const std::vector<uint8_t>& model_buffer) { in WrappedGetSignatureDefMap() argument 50 reinterpret_cast<const char*>(model_buffer.data()), model_buffer.size()); in WrappedGetSignatureDefMap() 69 py::bytes WrappedClearSignatureDefs(const std::vector<uint8_t>& model_buffer) { in WrappedClearSignatureDefs() argument 71 reinterpret_cast<const char*>(model_buffer.data()), model_buffer.size()); in WrappedClearSignatureDefs()
|
D | signature_def_utils.py | 46 model_buffer = signature_def_util.SetSignatureDefMap( 48 return model_buffer
|
/external/libtextclassifier/native/annotator/ |
D | annotator_test-include.cc | 53 std::string model_buffer = ReadFile(GetTestModelPath()); in GetTestModelWithDatetimeRegEx() local 54 model_buffer = ModifyAnnotatorModel(model_buffer, [](ModelT* model) { in GetTestModelWithDatetimeRegEx() 57 return model_buffer; in GetTestModelWithDatetimeRegEx() 1364 std::string model_buffer = GetTestModelWithDatetimeRegEx(); in TEST_F() local 1366 Annotator::FromUnownedBuffer(model_buffer.data(), model_buffer.size(), in TEST_F() 1372 std::string model_buffer = ReadFile(GetTestModelPath()); in TEST_F() local 1373 model_buffer = ModifyAnnotatorModel(model_buffer, [](ModelT* model) { in TEST_F() 1377 Annotator::FromUnownedBuffer(model_buffer.data(), model_buffer.size(), in TEST_F() 1400 std::string model_buffer = ReadFile(GetTestModelPath()); in TEST_F() local 1401 model_buffer = ModifyAnnotatorModel(model_buffer, [](ModelT* model) { in TEST_F() [all …]
|
/external/tflite-support/tensorflow_lite_support/cc/text/tokenizers/ |
D | tokenizer_utils.cc | 80 ASSIGN_OR_RETURN(absl::string_view model_buffer, in CreateTokenizerFromProcessUnit() 84 return absl::make_unique<SentencePieceTokenizer>(model_buffer.data(), in CreateTokenizerFromProcessUnit() 85 model_buffer.size()); in CreateTokenizerFromProcessUnit()
|
D | sentencepiece_jni.cc | 37 JNIEnv* env, jobject obj, jobject model_buffer) { in Java_org_tensorflow_lite_support_text_tokenizers_SentencePieceTokenizer_nativeLoadResource() argument 38 auto model = GetMappedFileBuffer(env, model_buffer); in Java_org_tensorflow_lite_support_text_tokenizers_SentencePieceTokenizer_nativeLoadResource()
|
/external/tensorflow/tensorflow/lite/c/ |
D | c_api_test.cc | 246 std::vector<char> model_buffer(model_file.tellg()); in TEST() local 249 model_file.read(model_buffer.data(), model_buffer.size()); in TEST() 252 TfLiteModelCreate(model_buffer.data(), model_buffer.size()); in TEST()
|
/external/libtextclassifier/native/utils/grammar/semantics/ |
D | composer_test.cc | 80 const std::string model_buffer = PackFlatbuffer<RulesSet>(&model); in TEST_F() local 82 flatbuffers::GetRoot<RulesSet>(model_buffer.data())); in TEST_F() 156 const std::string model_buffer = PackFlatbuffer<RulesSet>(&model); in TEST_F() local 158 flatbuffers::GetRoot<RulesSet>(model_buffer.data())); in TEST_F()
|
/external/tflite-support/tensorflow_lite_support/java/src/native/task/text/nlclassifier/bert_nlclassifier/ |
D | bert_nl_classifier_jni.cc | 39 JNIEnv* env, jclass thiz, jobject model_buffer) { in Java_org_tensorflow_lite_task_text_nlclassifier_BertNLClassifier_initJniWithByteBuffer() argument 40 auto model = GetMappedFileBuffer(env, model_buffer); in Java_org_tensorflow_lite_task_text_nlclassifier_BertNLClassifier_initJniWithByteBuffer()
|
/external/libtextclassifier/native/utils/grammar/ |
D | analyzer_test.cc | 58 const std::string model_buffer = PackFlatbuffer<RulesSet>(&model); in TEST_F() local 61 flatbuffers::GetRoot<RulesSet>(model_buffer.data())); in TEST_F()
|
/external/tflite-support/tensorflow_lite_support/codegen/python/ |
D | codegen.py | 70 model_buffer = get_model_buffer(FLAGS.model) 74 result = codegen.generate(model_buffer, FLAGS.package_name,
|
/external/libtextclassifier/native/annotator/pod_ner/ |
D | pod-ner-impl_test.cc | 230 std::string model_buffer = in TEST_F() local 235 flatbuffers::GetRoot<PodNerModel>(model_buffer.data())), in TEST_F() 279 std::string model_buffer = in TEST_F() local 284 flatbuffers::GetRoot<PodNerModel>(model_buffer.data())), in TEST_F() 313 std::string model_buffer = in TEST_F() local 318 flatbuffers::GetRoot<PodNerModel>(model_buffer.data())), in TEST_F()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/testing/feature_parity/generators/ |
D | add.cc | 76 flatbuffers::Offset<Model> model_buffer = CreateModel( in Build() local 81 builder.Finish(model_buffer); in Build()
|
/external/tflite-support/tensorflow_lite_support/java/src/native/task/vision/segmenter/ |
D | image_segmenter_jni.cc | 206 JNIEnv* env, jclass thiz, jobject model_buffer, in Java_org_tensorflow_lite_task_vision_segmenter_ImageSegmenter_initJniWithByteBuffer() argument 211 static_cast<char*>(env->GetDirectBufferAddress(model_buffer)), in Java_org_tensorflow_lite_task_vision_segmenter_ImageSegmenter_initJniWithByteBuffer() 212 static_cast<size_t>(env->GetDirectBufferCapacity(model_buffer))); in Java_org_tensorflow_lite_task_vision_segmenter_ImageSegmenter_initJniWithByteBuffer()
|
/external/tflite-support/tensorflow_lite_support/java/src/native/task/vision/classifier/ |
D | image_classifier_jni.cc | 192 JNIEnv* env, jclass thiz, jobject model_buffer, jobject java_options) { in Java_org_tensorflow_lite_task_vision_classifier_ImageClassifier_initJniWithByteBuffer() argument 200 static_cast<char*>(env->GetDirectBufferAddress(model_buffer)), in Java_org_tensorflow_lite_task_vision_classifier_ImageClassifier_initJniWithByteBuffer() 201 static_cast<size_t>(env->GetDirectBufferCapacity(model_buffer))); in Java_org_tensorflow_lite_task_vision_classifier_ImageClassifier_initJniWithByteBuffer()
|
/external/tflite-support/tensorflow_lite_support/java/src/native/task/vision/detector/ |
D | object_detector_jni.cc | 199 JNIEnv* env, jclass thiz, jobject model_buffer, jobject java_options) { in Java_org_tensorflow_lite_task_vision_detector_ObjectDetector_initJniWithByteBuffer() argument 203 static_cast<char*>(env->GetDirectBufferAddress(model_buffer)), in Java_org_tensorflow_lite_task_vision_detector_ObjectDetector_initJniWithByteBuffer() 204 static_cast<size_t>(env->GetDirectBufferCapacity(model_buffer))); in Java_org_tensorflow_lite_task_vision_detector_ObjectDetector_initJniWithByteBuffer()
|
/external/tflite-support/tensorflow_lite_support/java/src/native/task/text/nlclassifier/ |
D | nl_classifier_jni.cc | 94 jobject model_buffer) { in Java_org_tensorflow_lite_task_text_nlclassifier_NLClassifier_initJniWithByteBuffer() argument 95 auto model = GetMappedFileBuffer(env, model_buffer); in Java_org_tensorflow_lite_task_text_nlclassifier_NLClassifier_initJniWithByteBuffer()
|
/external/tensorflow/tensorflow/lite/delegates/xnnpack/ |
D | leaky_relu_tester.cc | 142 flatbuffers::Offset<Model> model_buffer = CreateModel( in CreateTfLiteModel() local 147 builder.Finish(model_buffer); in CreateTfLiteModel()
|
D | softmax_tester.cc | 144 flatbuffers::Offset<Model> model_buffer = CreateModel( in CreateTfLiteModel() local 149 builder.Finish(model_buffer); in CreateTfLiteModel()
|
D | reshape_tester.cc | 169 const flatbuffers::Offset<Model> model_buffer = CreateModel( in CreateTfLiteModel() local 174 builder.Finish(model_buffer); in CreateTfLiteModel()
|
D | unary_elementwise_tester.cc | 169 flatbuffers::Offset<Model> model_buffer = CreateModel( in CreateTfLiteModel() local 174 builder.Finish(model_buffer); in CreateTfLiteModel()
|
D | reduce_tester.cc | 159 flatbuffers::Offset<Model> model_buffer = CreateModel( in CreateTfLiteModel() local 164 builder.Finish(model_buffer); in CreateTfLiteModel()
|
D | depth_to_space_tester.cc | 158 const flatbuffers::Offset<Model> model_buffer = CreateModel( in CreateTfLiteModel() local 164 builder.Finish(model_buffer); in CreateTfLiteModel()
|
D | resize_bilinear_tester.cc | 176 flatbuffers::Offset<Model> model_buffer = CreateModel( in CreateTfLiteModel() local 181 builder.Finish(model_buffer); in CreateTfLiteModel()
|
D | pad_tester.cc | 175 flatbuffers::Offset<Model> model_buffer = CreateModel( in CreateTfLiteModel() local 180 builder.Finish(model_buffer); in CreateTfLiteModel()
|
D | pool_2d_tester.cc | 189 flatbuffers::Offset<tflite::Model> model_buffer = tflite::CreateModel( in CreateTfLiteModel() local 194 builder.Finish(model_buffer); in CreateTfLiteModel()
|