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
ba855cdb
You need to sign in or sign up before continuing.
Commit
ba855cdb
authored
Dec 14, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
21ded816
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
docs/tutorial/inference.md
docs/tutorial/inference.md
+5
-1
No files found.
docs/tutorial/inference.md
View file @
ba855cdb
...
@@ -28,7 +28,11 @@ But sometimes you need a different one for inference.
...
@@ -28,7 +28,11 @@ But sometimes you need a different one for inference.
For example, you may need a different data layout for CPU inference,
For example, you may need a different data layout for CPU inference,
or you may need placeholders in the inference graph, or the training graph contains multi-GPU replication
or you may need placeholders in the inference graph, or the training graph contains multi-GPU replication
which you want to remove.
which you want to remove.
In this case, you can always create a new graph with pure TensorFlow.
In this case, you can always construct a new graph by simply:
```
python
a
,
b
=
tf
.
placeholder
(
...
),
tf
.
placeholder
(
...
)
# call symbolic functions on a, b
```
The only tool tensorpack has for after-training inference is
`OfflinePredictor`
,
The only tool tensorpack has for after-training inference is
`OfflinePredictor`
,
a simple function to build the graph and return a callable for you.
a simple function to build the graph and return a callable for you.
...
...
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