mirror of
https://github.com/vee1e/tflite-micro.git
synced 2026-09-01 17:57:27 +00:00
Revert "update the tensorflow.lite to use ai-edge-litert for all python based…" (#2705)
Reverts tensorflow/tflite-micro#2702 BUG=#2703
This commit is contained in:
parent
47b5450743
commit
6411584e33
11 changed files with 11 additions and 26 deletions
|
|
@ -25,7 +25,6 @@ import weakref
|
|||
import numpy as np
|
||||
import tensorflow as tf
|
||||
|
||||
from ai_edge_litert import interpreter as litert_interpreter
|
||||
from tensorflow.python.framework import test_util
|
||||
from tensorflow.python.platform import test
|
||||
from tflite_micro.python.tflite_micro import runtime
|
||||
|
|
@ -200,10 +199,10 @@ class ConvModelTests(test_util.TensorFlowTestCase):
|
|||
tflm_interpreter = runtime.Interpreter.from_bytes(model_data)
|
||||
|
||||
# TFLite interpreter
|
||||
tflite_interpreter = litert_interpreter.Interpreter(
|
||||
tflite_interpreter = tf.lite.Interpreter(
|
||||
model_content=model_data,
|
||||
experimental_op_resolver_type=\
|
||||
litert_interpreter.OpResolverType.BUILTIN_REF)
|
||||
tf.lite.experimental.OpResolverType.BUILTIN_REF)
|
||||
tflite_interpreter.allocate_tensors()
|
||||
tflite_output_details = tflite_interpreter.get_output_details()[0]
|
||||
tflite_input_details = tflite_interpreter.get_input_details()[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue