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
e5d92e1b
Commit
e5d92e1b
authored
Dec 24, 2018
by
Dominic Symes
Committed by
Tianqi Chen
Dec 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FRONTEND][TENSORFLOW] Bugfix (#2326)
parent
a0062582
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
nnvm/python/nnvm/frontend/tensorflow.py
+5
-2
nnvm/tests/python/frontend/tensorflow/test_forward.py
+1
-0
No files found.
nnvm/python/nnvm/frontend/tensorflow.py
View file @
e5d92e1b
...
...
@@ -646,6 +646,9 @@ def _stridedSlice():
pass
else
:
final_output
.
append
(
out_shape
[
gather_index
])
# Prevent 0-dim tensors which are not accepted by nnvm
if
not
final_output
:
final_output
.
append
(
1
)
return
_sym
.
reshape
(
out
,
shape
=
tuple
(
final_output
))
return
_impl
...
...
@@ -1187,8 +1190,8 @@ class GraphProto(object):
raise
NotImplementedError
(
\
"Please freeze the graph with add_shapes=True"
)
self
.
_outputs_are_0d
[
node
.
name
]
=
[
\
not
shape
if
isinstance
(
shape
,
list
)
else
False
\
for
shape
in
self
.
_output_shapes
[
node
.
name
]]
not
tshape
if
isinstance
(
t
shape
,
list
)
else
False
\
for
t
shape
in
self
.
_output_shapes
[
node
.
name
]]
if
node
.
op
==
"Placeholder"
:
self
.
_nodes
[
node
.
name
]
=
_sym
.
Variable
(
name
=
node
.
name
,
...
...
nnvm/tests/python/frontend/tensorflow/test_forward.py
View file @
e5d92e1b
...
...
@@ -463,6 +463,7 @@ def test_forward_stridedslice():
_test_stridedslice
((
3
,
4
,
5
,
4
,
5
,
6
),
[
1
,
2
,
0
,
-
3
],
[
4
,
5
,
3
,
3
],
[
2
,
2
,
1
,
1
],
'float32'
,
shrink_axis_mask
=
8
,
new_axis_mask
=
1
,
ellipsis_mask
=
2
,
begin_mask
=
5
,
end_mask
=
8
)
_test_stridedslice
((
1
),
[
0
],
[
1
],
[
1
],
'float32'
,
shrink_axis_mask
=
1
)
#######################################################################
...
...
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