/external/tensorflow/tensorflow/lite/tools/signature/ |
D | signature_def_util.cc | 55 const auto signature_defs = in ReadSignatureDefMap() local 58 for (int i = 0; i < signature_defs.Keys().size(); ++i) { in ReadSignatureDefMap() 59 const std::string key = signature_defs.Keys()[i].AsString().c_str(); in ReadSignatureDefMap() 60 (*map)[key] = signature_defs[key].AsString().c_str(); in ReadSignatureDefMap() 116 SerializedSignatureDefMap signature_defs; in HasSignatureDef() local 117 if (ReadSignatureDefMap(model, metadata, &signature_defs) != in HasSignatureDef() 121 return (signature_defs.find(signature_key) != signature_defs.end()); in HasSignatureDef() 132 SerializedSignatureDefMap signature_defs; in GetSignatureDefMap() local 133 auto status = ReadSignatureDefMap(model, metadata, &signature_defs); in GetSignatureDefMap() 138 for (const auto& entry : signature_defs) { in GetSignatureDefMap()
|
D | BUILD | 1 # Utilities for signature_defs in TFLite
|
/external/tensorflow/tensorflow/python/saved_model/model_utils/ |
D | export_test.py | 58 signature_defs = export_utils.build_all_signature_defs( 73 self.assertDictEqual(expected_signature_defs, signature_defs) 98 signature_defs = export_utils.build_all_signature_defs( 121 self.assertDictEqual(expected_signature_defs, signature_defs) 152 signature_defs = export_utils.build_all_signature_defs( 180 self.assertDictEqual(expected_signature_defs, signature_defs) 239 signature_defs = export_utils.build_all_signature_defs( 248 self.assertDictEqual(expected_signature_defs, signature_defs) 250 signature_defs = export_utils.build_all_signature_defs( 259 self.assertDictEqual(expected_signature_defs, signature_defs)
|
/external/tensorflow/tensorflow/lite/ |
D | interpreter_builder.cc | 497 std::vector<Interpreter::SignatureDef> signature_defs; in ParseSignatureDefs() local 498 signature_defs.reserve(signature_def_list->size()); in ParseSignatureDefs() 521 signature_defs.resize(signature_defs.size() + 1); in ParseSignatureDefs() 522 auto& signature_def = signature_defs.back(); in ParseSignatureDefs() 530 interpreter->SetSignatureDef(std::move(signature_defs)); in ParseSignatureDefs() 773 if (ParseSignatureDefs(model_->signature_defs(), interpreter->get()) != in operator ()()
|
D | interpreter.h | 718 void SetSignatureDef(std::vector<SignatureDef> signature_defs) { in SetSignatureDef() argument 719 signature_defs_ = std::move(signature_defs); in SetSignatureDef()
|
/external/tensorflow/tensorflow/lite/python/ |
D | interpreter.py | 190 signature_defs = interpreter._get_full_signature_list() 191 if signature_def_name not in signature_defs: 193 self._signature_def = signature_defs[signature_def_name]
|
D | lite_v2_test.py | 989 signature_defs = interpreter.get_signature_list() 999 self.assertEqual(len(signature_defs), 1) 1000 self.assertEqual(list(signature_defs.keys()), ['mul_add']) 1001 self.assertEqual(len(signature_defs.values()), 1) 1003 list(signature_defs['mul_add'].keys()), ['inputs', 'outputs']) 1004 self.assertCountEqual(signature_defs['mul_add']['inputs'], ['x', 'y']) 1005 self.assertEqual(list(signature_defs['mul_add']['outputs']), ['output_0']) 1029 signature_defs = interpreter.get_signature_list() 1039 self.assertEqual(len(signature_defs), 1) 1040 self.assertEqual(list(signature_defs.keys()), ['mul_add']) [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/ |
D | metadata.mlir | 36 // CHECK-NEXT: signature_defs: [ ]
|
D | variant_type_on_func.mlir | 33 // CHECK-NEXT: signature_defs: [ ]
|
D | variant_type_on_op.mlir | 33 // CHECK-NEXT: signature_defs: [ ]
|
D | flex_exclusively.mlir | 50 // CHECK-NEXT: signature_defs: [ ]
|
D | nn.mlir | 58 // CHECK-NEXT: signature_defs: [ ]
|
D | numeric_verify.mlir | 60 // CHECK-NEXT: signature_defs: [ ]
|
D | flex_op_with_f64.mlir | 63 // CHECK-NEXT: signature_defs: [ ]
|
D | reshape.mlir | 62 // CHECK-NEXT: signature_defs: [ ]
|
D | fake_quant.mlir | 57 // CHECK-NEXT: signature_defs: [ ]
|
D | flex_op_with_complex128.mlir | 63 // CHECK-NEXT: signature_defs: [ ]
|
D | fully_connected.mlir | 72 // CHECK-NEXT: signature_defs: [ ]
|
D | transpose_conv_optional.mlir | 73 // CHECK-NEXT: signature_defs: [ ]
|
D | fully_connected_v2.mlir | 72 // CHECK-NEXT: signature_defs: [ ]
|
D | mul_v2.mlir | 69 // CHECK-NEXT: signature_defs: [ ]
|
D | mul_v3.mlir | 69 // CHECK-NEXT: signature_defs: [ ]
|
D | logical.mlir | 90 // CHECK-NEXT: signature_defs: [ ]
|
/external/tensorflow/tensorflow/lite/java/src/main/native/ |
D | nativeinterpreterwrapper_jni.cc | 283 const auto& signature_defs = interpreter->signature_def_names(); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getSignatureDefNames() local 285 signature_defs.size(), string_class, env->NewStringUTF(""))); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getSignatureDefNames() 286 for (int i = 0; i < signature_defs.size(); ++i) { in Java_org_tensorflow_lite_NativeInterpreterWrapper_getSignatureDefNames() 288 env->NewStringUTF(signature_defs[i]->c_str())); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getSignatureDefNames()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/end2end/ |
D | add.pbtxt | 100 # CHECK-NEXT: signature_defs: [ ]
|