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
1cd986d3
Commit
1cd986d3
authored
Jun 20, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs about build model outside of tensorpack
parent
a1477a75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
docs/tutorial/model.md
docs/tutorial/model.md
+7
-0
No files found.
docs/tutorial/model.md
View file @
1cd986d3
...
@@ -72,6 +72,13 @@ with TowerContext('', is_training=True):
...
@@ -72,6 +72,13 @@ with TowerContext('', is_training=True):
# call any tensorpack layer
# call any tensorpack layer
```
```
Some layers (in particular
``BatchNorm``
) has different train/test time behavior which is controlled
by
``TowerContext``
. If you need to use the tensorpack version of them in test time, you'll need to create the ops for them under another context.
```
python
with
tf
.
variable_scope
(
tf
.
get_variable_scope
(),
reuse
=
True
),
TowerContext
(
'predict'
,
is_training
=
False
):
# build the graph again
```
### Use Other Symbolic Libraries within Tensorpack
### Use Other Symbolic Libraries within Tensorpack
When defining the model you can construct the graph using whatever library you feel comfortable with.
When defining the model you can construct the graph using whatever library you feel comfortable with.
...
...
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