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
2b24e23f
Commit
2b24e23f
authored
Apr 16, 2019
by
Alexander Pivovarov
Committed by
Tianqi Chen
Apr 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify TF get_output_names (#3025)
parent
7ee5cbac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
python/tvm/relay/frontend/tensorflow_parser.py
+3
-5
No files found.
python/tvm/relay/frontend/tensorflow_parser.py
View file @
2b24e23f
...
...
@@ -85,11 +85,9 @@ class TFParser(object):
tags
,
self
.
_model_dir
)
output_names
=
set
()
for
k
in
meta_graph_def
.
signature_def
.
keys
():
outputs_tensor_info
=
meta_graph_def
.
signature_def
[
k
]
.
outputs
for
output_tensor
in
outputs_tensor_info
.
values
():
output_names
.
add
(
output_tensor
.
name
)
output_names
=
[
i
.
replace
(
":0"
,
""
)
for
i
in
output_names
]
for
sig_def
in
meta_graph_def
.
signature_def
.
values
():
for
output_tensor
in
sig_def
.
outputs
.
values
():
output_names
.
add
(
output_tensor
.
name
.
replace
(
":0"
,
""
))
return
","
.
join
(
output_names
)
def
_load_saved_model
(
self
):
...
...
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