Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
e755ace6
Commit
e755ace6
authored
Aug 13, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use modeldescbase (fix #380)
parent
22221fd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tensorpack/tfutils/export.py
tensorpack/tfutils/export.py
+3
-3
No files found.
tensorpack/tfutils/export.py
View file @
e755ace6
...
@@ -9,7 +9,7 @@ This simplifies the process of exporting a model for TensorFlow serving.
...
@@ -9,7 +9,7 @@ This simplifies the process of exporting a model for TensorFlow serving.
import
tensorflow
as
tf
import
tensorflow
as
tf
from
..utils
import
logger
from
..utils
import
logger
from
..graph_builder.model_desc
import
ModelDesc
from
..graph_builder.model_desc
import
ModelDesc
Base
from
..graph_builder.input_source
import
PlaceholderInput
from
..graph_builder.input_source
import
PlaceholderInput
from
..tfutils
import
TowerContext
,
sessinit
from
..tfutils
import
TowerContext
,
sessinit
...
@@ -50,14 +50,14 @@ class ModelExport(object):
...
@@ -50,14 +50,14 @@ class ModelExport(object):
prediction = sess.run(prediction, {lowres: ...})[0]
prediction = sess.run(prediction, {lowres: ...})[0]
Args:
Args:
model (ModelDesc): the model description which should be exported
model (ModelDesc
Base
): the model description which should be exported
input_names (list(str)): names of input tensors
input_names (list(str)): names of input tensors
output_names (list(str)): names of output tensors
output_names (list(str)): names of output tensors
"""
"""
assert
isinstance
(
input_names
,
list
)
assert
isinstance
(
input_names
,
list
)
assert
isinstance
(
output_names
,
list
)
assert
isinstance
(
output_names
,
list
)
assert
isinstance
(
model
,
ModelDesc
)
assert
isinstance
(
model
,
ModelDesc
Base
)
logger
.
info
(
'[export] prepare new model export'
)
logger
.
info
(
'[export] prepare new model export'
)
super
(
ModelExport
,
self
)
.
__init__
()
super
(
ModelExport
,
self
)
.
__init__
()
...
...
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