Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
e97c0101
Commit
e97c0101
authored
Jun 24, 2019
by
Sammy
Committed by
Tianqi Chen
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing package path in tflite test (#3427)
parent
25bad440
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
tests/python/frontend/tflite/test_forward.py
+5
-2
No files found.
tests/python/frontend/tflite/test_forward.py
View file @
e97c0101
...
...
@@ -32,7 +32,10 @@ from tensorflow.python.ops import math_ops
from
tensorflow.python.ops
import
nn_ops
from
tensorflow.python.ops
import
array_ops
from
tensorflow.python.ops
import
variables
from
tensorflow
import
lite
as
interpreter_wrapper
try
:
from
tensorflow
import
lite
as
interpreter_wrapper
except
ImportError
:
from
tensorflow.contrib
import
lite
as
interpreter_wrapper
import
tvm.relay.testing.tf
as
tf_testing
...
...
@@ -131,7 +134,7 @@ def compare_tflite_with_tvm(in_data, in_name, input_tensors,
if
init_global_variables
:
sess
.
run
(
variables
.
global_variables_initializer
())
# convert to tflite model
converter
=
tf
.
contrib
.
lite
.
TFLiteConverter
.
from_session
(
converter
=
interpreter_wrapper
.
TFLiteConverter
.
from_session
(
sess
,
input_tensors
,
output_tensors
)
tflite_model_buffer
=
converter
.
convert
()
tflite_output
=
run_tflite_graph
(
tflite_model_buffer
,
in_data
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment