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
f26b9b59
Commit
f26b9b59
authored
May 06, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add RunUpdateOps to the default callbacks
parent
f73717ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tensorpack/train/config.py
tensorpack/train/config.py
+4
-3
No files found.
tensorpack/train/config.py
View file @
f26b9b59
...
@@ -7,7 +7,7 @@ import tensorflow as tf
...
@@ -7,7 +7,7 @@ import tensorflow as tf
from
..callbacks
import
(
from
..callbacks
import
(
Callbacks
,
MovingAverageSummary
,
Callbacks
,
MovingAverageSummary
,
ProgressBar
,
MergeAllSummaries
,
ProgressBar
,
MergeAllSummaries
,
TFSummaryWriter
,
JSONWriter
,
ScalarPrinter
)
TFSummaryWriter
,
JSONWriter
,
ScalarPrinter
,
RunUpdateOps
)
from
..dataflow.base
import
DataFlow
from
..dataflow.base
import
DataFlow
from
..models
import
ModelDesc
from
..models
import
ModelDesc
from
..utils
import
logger
from
..utils
import
logger
...
@@ -44,7 +44,7 @@ class TrainConfig(object):
...
@@ -44,7 +44,7 @@ class TrainConfig(object):
callbacks (list): a list of :class:`Callback` to perform during training.
callbacks (list): a list of :class:`Callback` to perform during training.
extra_callbacks (list): the same as ``callbacks``. This argument
extra_callbacks (list): the same as ``callbacks``. This argument
is only used to provide the defaults. The defaults are
is only used to provide the defaults. The defaults are
``[MovingAverageSummary(), ProgressBar(), MergeAllSummaries(),
LoadEpochNum
()]``. The list of
``[MovingAverageSummary(), ProgressBar(), MergeAllSummaries(),
RunUpdateOps
()]``. The list of
callbacks that will be used in the end are ``callbacks + extra_callbacks``.
callbacks that will be used in the end are ``callbacks + extra_callbacks``.
monitors (list): a list of :class:`TrainingMonitor`.
monitors (list): a list of :class:`TrainingMonitor`.
Defaults to ``[TFSummaryWriter(), JSONWriter(), ScalarPrinter()]``.
Defaults to ``[TFSummaryWriter(), JSONWriter(), ScalarPrinter()]``.
...
@@ -95,7 +95,8 @@ class TrainConfig(object):
...
@@ -95,7 +95,8 @@ class TrainConfig(object):
extra_callbacks
=
[
extra_callbacks
=
[
MovingAverageSummary
(),
MovingAverageSummary
(),
ProgressBar
(),
ProgressBar
(),
MergeAllSummaries
()]
MergeAllSummaries
(),
RunUpdateOps
()]
self
.
_callbacks
=
callbacks
+
extra_callbacks
self
.
_callbacks
=
callbacks
+
extra_callbacks
assert_type
(
self
.
_callbacks
,
list
)
assert_type
(
self
.
_callbacks
,
list
)
...
...
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