tmoreau89 commented on a change in pull request #5497:
URL: https://github.com/apache/incubator-tvm/pull/5497#discussion_r418736415



##########
File path: tests/python/frontend/tflite/test_forward.py
##########
@@ -79,12 +79,12 @@ def run_tvm_graph(tflite_model_buf, input_data, input_node, 
num_output=1, target
     # TFLite.Model.Model has changed to TFLite.Model from 1.14 to 2.1
     try:
         import tflite.Model
-        tflite_model = tflite.Model.GetRootAsModel(tflite_model_buf, 0)
-    except ImportError:
-        raise ImportError("The tflite package must be installed")
+        tflite_model = tflite.Model.Model.GetRootAsModel(tflite_model_buf, 0)
     except AttributeError:
         import tflite
-        tflite_model = tflite.GetRootAsModel(tflite_model_buf, 0)
+        tflite_model = tflite.Mode.GetRootAsModel(tflite_model_buf, 0)

Review comment:
       good catch, I'm going to rerun the unit tests in both environments to 
make sure things are not breaking




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to