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
088521fc
Commit
088521fc
authored
Feb 22, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add back multipredictortowertrainer for compatibiltiy
parent
319e7591
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
tensorpack/train/base.py
tensorpack/train/base.py
+8
-2
No files found.
tensorpack/train/base.py
View file @
088521fc
...
...
@@ -12,13 +12,13 @@ from six.moves import range
import
tensorflow
as
tf
from
.predict
import
PredictorFactory
from
.config
import
TrainConfig
from
..utils
import
logger
,
deprecated
from
..utils
import
logger
,
deprecated
,
log_deprecated
from
..callbacks
import
StatHolder
from
..tfutils
import
get_global_step_value
from
..tfutils.modelutils
import
describe_model
from
..tfutils.summary
import
create_scalar_summary
__all__
=
[
'Trainer'
,
'StopTraining'
]
__all__
=
[
'Trainer'
,
'StopTraining'
,
'MultiPredictorTowerTrainer'
]
class
StopTraining
(
BaseException
):
...
...
@@ -214,3 +214,9 @@ class Trainer(object):
@
deprecated
(
"Don't need to call it any more!"
,
"2017-03-20"
)
def
_setup_predictor_factory
(
self
):
pass
# back-compat
class
MultiPredictorTowerTrainer
(
Trainer
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
log_deprecated
(
"MultiPredictorTowerTrainer"
,
"Just remove it instead."
,
"2017-03-21"
)
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