Home
last modified time | relevance | path

Searched defs:interpreter (Results 1 – 25 of 160) sorted by relevance

1234567

/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/
DInterpreterTest.java75 try (Interpreter interpreter = new Interpreter(MODEL_BUFFER)) { in testInterpreter()
87 try (Interpreter interpreter = in testInterpreterWithOptions()
109 try (Interpreter interpreter = new Interpreter(new File(MODEL_PATH))) { in testRunWithFileModel()
127 try (Interpreter interpreter = new Interpreter(byteBuffer)) { in testRunWithDirectByteBufferModel()
159 try (Interpreter interpreter = new Interpreter(MODEL_BUFFER)) { in testRun()
176 try (Interpreter interpreter = new Interpreter(MODEL_BUFFER)) { in testRunWithBoxedInputs()
191 try (Interpreter interpreter = new Interpreter(MULTIPLE_INPUTS_MODEL_BUFFER)) { in testRunForMultipleInputsOutputs()
227 try (Interpreter interpreter = new Interpreter(MODEL_BUFFER)) { in testRunWithByteBufferOutput()
240 try (Interpreter interpreter = new Interpreter(MODEL_BUFFER)) { in testRunWithScalarInput()
248 try (Interpreter interpreter = new Interpreter(MODEL_BUFFER)) { in testResizeInput()
[all …]
DInterpreterApiTest.java67 try (InterpreterApi interpreter = in testInterpreter()
80 try (InterpreterApi interpreter = in testInterpreterWithOptions()
98 try (InterpreterApi interpreter = in testRunWithFileModel()
117 try (InterpreterApi interpreter = in testRunWithDirectByteBufferModel()
150 try (InterpreterApi interpreter = in testRun()
168 try (InterpreterApi interpreter = in testRunWithBoxedInputs()
184 try (InterpreterApi interpreter = in testRunForMultipleInputsOutputs()
222 try (InterpreterApi interpreter = in testRunWithByteBufferOutput()
236 try (InterpreterApi interpreter = in testRunWithScalarInput()
245 try (InterpreterApi interpreter = in testResizeInput()
[all …]
DInterpreterFlexTest.java44 try (Interpreter interpreter = new Interpreter(FLEX_MODEL_BUFFER, options)) { in testFlexModel()
54 try (Interpreter interpreter = new Interpreter(FLEX_MODEL_BUFFER)) { in testFlexModelDelegateAutomaticallyApplied()
70 private static void testCommon(Interpreter interpreter) { in testCommon()
/external/tflite-support/tensorflow_lite_support/cc/task/core/
Dtflite_engine.h79 static int32_t InputCount(const Interpreter* interpreter) { in InputCount()
86 static int32_t OutputCount(const Interpreter* interpreter) { in OutputCount()
93 static TfLiteTensor* GetInput(Interpreter* interpreter, int index) { in GetInput()
101 static const TfLiteTensor* GetInput(const Interpreter* interpreter, in GetInput()
109 static TfLiteTensor* GetOutput(Interpreter* interpreter, int index) { in GetOutput()
121 static const TfLiteTensor* GetOutput(const Interpreter* interpreter, in GetOutput()
134 Interpreter* interpreter() { return interpreter_.get(); } in interpreter() function
135 const Interpreter* interpreter() const { return interpreter_.get(); } in interpreter() function
/external/tensorflow/tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite/
DTestHelper.java28 public static Long getLastNativeInferenceDurationNanoseconds(Interpreter interpreter) { in getLastNativeInferenceDurationNanoseconds()
44 public static int[] getInputDims(Interpreter interpreter, int index) { in getInputDims()
63 public static String getInputDataType(Interpreter interpreter, int index) { in getInputDataType()
82 public static String getOutputDataType(Interpreter interpreter, int index) { in getOutputDataType()
/external/libtextclassifier/native/utils/
Dtflite-model-executor.h80 tflite::Interpreter* interpreter) const { in SetInput()
87 tflite::Interpreter* interpreter) const { in SetInput()
94 tflite::Interpreter* interpreter) const { in SetInput()
126 const tflite::Interpreter* interpreter) const { in OutputView()
137 const tflite::Interpreter* interpreter) const { in Output()
/external/tensorflow/tensorflow/lite/
Dmodel_test.cc134 std::unique_ptr<Interpreter> interpreter; in TEST() local
154 std::unique_ptr<Interpreter> interpreter; in TEST() local
162 std::unique_ptr<Interpreter> interpreter; in TEST() local
172 std::unique_ptr<Interpreter> interpreter; in TEST() local
185 std::unique_ptr<Interpreter> interpreter(new Interpreter); in TEST() local
197 std::unique_ptr<Interpreter> interpreter(new Interpreter); in TEST() local
278 std::unique_ptr<Interpreter> interpreter; in TEST() local
308 std::unique_ptr<Interpreter> interpreter; in TEST() local
348 std::unique_ptr<Interpreter> interpreter; in TEST() local
368 std::unique_ptr<Interpreter> interpreter(new Interpreter); in TEST() local
[all …]
Dinterpreter_test.cc61 Interpreter interpreter; in TEST() local
84 Interpreter interpreter; in TEST() local
91 Interpreter interpreter; in TEST() local
109 Interpreter interpreter; in TEST() local
130 Interpreter interpreter; in TEST() local
149 Interpreter interpreter; in TEST() local
157 Interpreter interpreter; in TEST() local
165 Interpreter interpreter; in TEST() local
175 Interpreter interpreter; in TEST() local
199 Interpreter interpreter; in TEST() local
[all …]
Doptional_debug_tools_test.cc29 void InitInputTensorData(Interpreter* interpreter) { in InitInputTensorData()
44 std::unique_ptr<Interpreter> interpreter; in TEST() local
71 std::unique_ptr<Interpreter> interpreter; in TEST() local
Dstring_util_test.cc29 Interpreter interpreter; in TEST() local
105 Interpreter interpreter; in TEST() local
129 Interpreter interpreter; in TEST() local
154 Interpreter interpreter; in TEST() local
167 Interpreter interpreter; in TEST() local
Dmodel_xnnpack_test.cc37 std::unique_ptr<Interpreter> interpreter; in TEST() local
63 std::unique_ptr<Interpreter> interpreter; in TEST() local
/external/tensorflow/tensorflow/lite/c/
Dc_api.cc140 void TfLiteInterpreterDelete(TfLiteInterpreter* interpreter) { in TfLiteInterpreterDelete()
145 const TfLiteInterpreter* interpreter) { in TfLiteInterpreterGetInputTensorCount()
150 const TfLiteInterpreter* interpreter, int32_t input_index) { in TfLiteInterpreterGetInputTensor()
154 TfLiteStatus TfLiteInterpreterResizeInputTensor(TfLiteInterpreter* interpreter, in TfLiteInterpreterResizeInputTensor()
163 TfLiteStatus TfLiteInterpreterAllocateTensors(TfLiteInterpreter* interpreter) { in TfLiteInterpreterAllocateTensors()
167 TfLiteStatus TfLiteInterpreterInvoke(TfLiteInterpreter* interpreter) { in TfLiteInterpreterInvoke()
177 const TfLiteInterpreter* interpreter) { in TfLiteInterpreterGetOutputTensorCount()
182 const TfLiteInterpreter* interpreter, int32_t output_index) { in TfLiteInterpreterGetOutputTensor()
277 std::unique_ptr<tflite::Interpreter> interpreter; in InterpreterCreateWithOpResolver() local
Dc_api_experimental.cc30 TfLiteInterpreter* interpreter) { in TfLiteInterpreterResetVariableTensors()
83 void TfLiteSetAllowBufferHandleOutput(const TfLiteInterpreter* interpreter, in TfLiteSetAllowBufferHandleOutput()
89 const TfLiteInterpreter* interpreter, TfLiteDelegate* delegate) { in TfLiteInterpreterModifyGraphWithDelegate()
94 const TfLiteInterpreter* interpreter, int32_t input_index) { in TfLiteInterpreterGetInputTensorIndex()
99 const TfLiteInterpreter* interpreter, int32_t output_index) { in TfLiteInterpreterGetOutputTensorIndex()
Dc_api_experimental_test.cc56 TfLiteInterpreter* interpreter = TfLiteInterpreterCreate(model, options); in TEST() local
77 TfLiteInterpreter* interpreter = in TEST() local
108 TfLiteInterpreter* interpreter = in TEST() local
160 TfLiteInterpreter* interpreter = in TEST() local
173 void AllocateAndSetInputs(TfLiteInterpreter* interpreter) { in AllocateAndSetInputs()
187 void VerifyOutputs(TfLiteInterpreter* interpreter) { in VerifyOutputs()
206 TfLiteInterpreter* interpreter = TfLiteInterpreterCreate(model, options); in CheckExecution() local
Dc_api_test.cc42 TfLiteInterpreter* interpreter = TfLiteInterpreterCreate(model, options); in TEST() local
110 TfLiteInterpreter* interpreter = TfLiteInterpreterCreate(model, nullptr); in TEST() local
179 TfLiteInterpreter* interpreter = TfLiteInterpreterCreate(model, options); in TEST() local
202 TfLiteInterpreter* interpreter = TfLiteInterpreterCreate(model, options); in TEST() local
225 TfLiteInterpreter* interpreter = TfLiteInterpreterCreate(model, options); in TEST() local
/external/libtextclassifier/native/actions/
Dlua-actions.cc36 const tflite::Interpreter* interpreter, int output) { in GetTensorViewForOutput()
45 const tflite::Interpreter* interpreter, int output) { in GetStringTensorForOutput()
59 const tflite::Interpreter* interpreter, in CreateLuaActionsSuggestions()
78 const tflite::Interpreter* interpreter, in LuaActionsSuggestions()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/testing/feature_parity/
Dutils.cc124 std::unique_ptr<Interpreter>* interpreter) { in BuildInterpreter()
134 absl::Status AllocateTensors(std::unique_ptr<Interpreter>* interpreter) { in AllocateTensors()
141 absl::Status ModifyGraphWithDelegate(std::unique_ptr<Interpreter>* interpreter, in ModifyGraphWithDelegate()
150 std::unique_ptr<Interpreter>* interpreter) { in InitializeInputs()
160 absl::Status Invoke(std::unique_ptr<Interpreter>* interpreter) { in Invoke()
/external/testng/src/main/java/org/testng/internal/
DBsh.java20 Interpreter interpreter = getInterpreter(); in includeMethodFromExpression() local
50 …private void setContext(Interpreter interpreter, Method method, Map<String, String> groups, ITestN… in setContext()
61 private void resetContext(Interpreter interpreter) { in resetContext()
/external/tensorflow/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/
DInterpreter.cs58 private TfLiteInterpreter interpreter = IntPtr.Zero; field in TensorFlowLite.Interpreter
222 private static extern unsafe void TfLiteInterpreterDelete(TfLiteInterpreter interpreter); in TfLiteInterpreterDelete()
226 TfLiteInterpreter interpreter); in TfLiteInterpreterGetInputTensorCount()
230 TfLiteInterpreter interpreter, in TfLiteInterpreterGetInputTensor()
235 TfLiteInterpreter interpreter, in TfLiteInterpreterResizeInputTensor()
242 TfLiteInterpreter interpreter); in TfLiteInterpreterAllocateTensors()
245 private static extern unsafe int TfLiteInterpreterInvoke(TfLiteInterpreter interpreter); in TfLiteInterpreterInvoke()
249 TfLiteInterpreter interpreter); in TfLiteInterpreterGetOutputTensorCount()
253 TfLiteInterpreter interpreter, in TfLiteInterpreterGetOutputTensor()
/external/tensorflow/tensorflow/lite/java/src/main/native/
Dnativeinterpreterwrapper_jni.cc105 bool ValidateSubgraphIndex(JNIEnv* env, Interpreter* interpreter, in ValidateSubgraphIndex()
123 jstring signature_key, Interpreter* interpreter, in GetTensorIndexForSignature()
185 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getInputNames() local
210 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_allocateTensors() local
397 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getInputTensorIndex() local
407 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getOutputTensorIndex() local
432 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getInputCount() local
443 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getOutputCount() local
454 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getOutputNames() local
476 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_allowFp16PrecisionForFp32() local
[all …]
/external/python/cpython3/Lib/
Dzipapp.py46 def _write_file_prefix(f, interpreter): argument
53 def _copy_archive(archive, new_archive, interpreter=None): argument
76 def create_archive(source, target=None, interpreter=None, main=None, argument
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dcalibrator_test.cc45 std::unique_ptr<Interpreter> interpreter; in TEST() local
124 std::unique_ptr<Interpreter> interpreter; in TEST() local
201 std::unique_ptr<Interpreter> interpreter; in TEST() local
286 std::unique_ptr<Interpreter> interpreter; in TEST() local
350 std::unique_ptr<Interpreter> interpreter; in TEST() local
412 std::unique_ptr<Interpreter> interpreter; in TEST() local
488 std::unique_ptr<Interpreter> interpreter; in TEST() local
557 std::unique_ptr<Interpreter> interpreter; in TEST() local
/external/tensorflow/tensorflow/lite/tools/serialization/
Dwriter_lib_test.cc49 void WriteToFile(Interpreter* interpreter, const std::string& filename, in WriteToFile()
62 Interpreter interpreter; in TEST_P() local
105 Interpreter interpreter; in TEST_P() local
139 Interpreter interpreter; in TEST_P() local
186 Interpreter interpreter; in TEST_P() local
238 Interpreter interpreter; in TEST_P() local
281 Interpreter interpreter; in TEST_P() local
323 Interpreter interpreter; in TEST_P() local
/external/tensorflow/tensorflow/lite/profiling/
Dprofile_summarizer.cc36 std::string GetTensorName(const tflite::Interpreter& interpreter, in GetTensorName()
44 std::vector<std::string> GetTensorNames(const tflite::Interpreter& interpreter, in GetTensorNames()
70 OperatorDetails GetOperatorDetails(const tflite::Interpreter& interpreter, in GetOperatorDetails()
106 const tflite::Interpreter& interpreter) { in ProcessProfiles()
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
DREADME.md14 ### Enable XNNPACK via Java API on Android (recommended on Android)
26 ### Enable XNNPACK via Swift/Objective-C API on iOS (recommended on iOS)
51 ### Enable XNNPACK via Bazel build flags (recommended on desktop)
87 ### Enable XNNPACK via additional dependency
96 ### Enable XNNPACK via low-level delegate API (not recommended)

1234567