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
8908e6d4
Commit
8908e6d4
authored
May 01, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
940d4167
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tensorpack/callbacks/saver.py
tensorpack/callbacks/saver.py
+1
-1
tensorpack/models/batch_norm.py
tensorpack/models/batch_norm.py
+2
-2
No files found.
tensorpack/callbacks/saver.py
View file @
8908e6d4
...
@@ -46,7 +46,7 @@ class ModelSaver(Callback):
...
@@ -46,7 +46,7 @@ class ModelSaver(Callback):
def
_setup_graph
(
self
):
def
_setup_graph
(
self
):
assert
self
.
checkpoint_dir
is
not
None
,
\
assert
self
.
checkpoint_dir
is
not
None
,
\
"
ModelSaver() doesn't have a valid checkpoint directory.
"
"
Please provide 'checkpoint_dir' for ModelSaver, or use logger.set_logger_dir()
"
vars
=
[]
vars
=
[]
for
key
in
self
.
var_collections
:
for
key
in
self
.
var_collections
:
vars
.
extend
(
tf
.
get_collection
(
key
))
vars
.
extend
(
tf
.
get_collection
(
key
))
...
...
tensorpack/models/batch_norm.py
View file @
8908e6d4
...
@@ -80,8 +80,8 @@ def BatchNorm(inputs, axis=None, training=None, momentum=0.9, epsilon=1e-5,
...
@@ -80,8 +80,8 @@ def BatchNorm(inputs, axis=None, training=None, momentum=0.9, epsilon=1e-5,
1. Accepts an alternative `data_format` option when `axis` is None. For 2D input, this argument will be ignored.
1. Accepts an alternative `data_format` option when `axis` is None. For 2D input, this argument will be ignored.
2. Default value for `momentum` and `epsilon` is different.
2. Default value for `momentum` and `epsilon` is different.
3. Default value for `training` is automatically obtained from tensorpack's `TowerContext`, but can be overwritten.
3. Default value for `training` is automatically obtained from tensorpack's `TowerContext`, but can be overwritten.
4. Support the `
internal_update
` option, which cover more use cases than the standard collection-based update.
4. Support the `
`internal_update`
` option, which cover more use cases than the standard collection-based update.
5. Support the `
sync_statistics
` option, which is very useful in small-batch models.
5. Support the `
`sync_statistics`
` option, which is very useful in small-batch models.
Args:
Args:
internal_update (bool): if False, add EMA update ops to
internal_update (bool): if False, add EMA update ops to
...
...
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