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
c1376a40
Commit
c1376a40
authored
Jul 27, 2019
by
lixiaoquan
Committed by
Tianqi Chen
Jul 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TensorFlow] Fix a bug output index is ignored (#3631)
Enhance test to cover this case
parent
f1ede9a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
python/tvm/relay/frontend/tensorflow.py
+0
-9
tests/python/frontend/tensorflow/test_forward.py
+3
-2
No files found.
python/tvm/relay/frontend/tensorflow.py
View file @
c1376a40
...
...
@@ -2031,15 +2031,6 @@ class GraphProto(object):
# Pass the target layout
attr
[
"_target_layout"
]
=
layout
#ToDo: Some of the tensorflow operators internaly maintain
#execution layers and its output name will the layer number along with
#graph node name.eg: Node name:- 'Model/RNN/cell_0/RnnCell', but the
#output name will be 'Model/RNN/cell_0/RnnCell:0'. In this case,
#the digit has to be ignored.
if
":"
in
node
.
input
[
0
]:
in_name
,
_
=
node
.
input
[
0
]
.
split
(
':'
)
node
.
input
[
0
]
=
in_name
# Fill shapes for all inputs in a list
inputs
=
[]
for
i
in
node
.
input
:
...
...
tests/python/frontend/tensorflow/test_forward.py
View file @
c1376a40
...
...
@@ -836,9 +836,10 @@ def _test_split(in_shape, axis, num_or_size_splits, dtype):
in_data
=
tf
.
placeholder
(
dtype
,
in_shape
,
name
=
"in_data"
)
num_split
=
len
(
num_or_size_splits
)
if
isinstance
(
num_or_size_splits
,
list
)
\
else
num_or_size_splits
tf
.
split
(
in_data
,
num_or_size_splits
,
axis
=
axis
)
split
=
tf
.
split
(
in_data
,
num_or_size_splits
,
axis
=
axis
)
relu
=
[
tf
.
nn
.
relu
(
i
)
for
i
in
split
]
compare_tf_with_tvm
([
np_data
],
[
'in_data:0'
],
[
f
'split:{n}'
for
n
in
range
(
num_split
)
])
compare_tf_with_tvm
([
np_data
],
[
'in_data:0'
],
[
n
.
name
for
n
in
relu
])
# and now test together with concat
tf
.
reset_default_graph
()
...
...
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