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
fd682216
Commit
fd682216
authored
Sep 28, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
e1946b31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
tensorpack/train/base.py
tensorpack/train/base.py
+2
-9
tensorpack/train/multigpu.py
tensorpack/train/multigpu.py
+0
-1
No files found.
tensorpack/train/base.py
View file @
fd682216
...
@@ -11,7 +11,6 @@ import tensorflow as tf
...
@@ -11,7 +11,6 @@ import tensorflow as tf
from
.config
import
TrainConfig
from
.config
import
TrainConfig
from
..utils
import
logger
from
..utils
import
logger
from
..utils.naming
import
GLOBAL_STEP_INCR_OP_NAME
from
..utils.naming
import
GLOBAL_STEP_INCR_OP_NAME
from
..utils.develop
import
deprecated
from
..callbacks
import
Callback
,
Callbacks
from
..callbacks
import
Callback
,
Callbacks
from
..callbacks.monitor
import
Monitors
,
TrainingMonitor
from
..callbacks.monitor
import
Monitors
,
TrainingMonitor
from
..tfutils
import
get_global_step_value
,
get_global_step_var
from
..tfutils
import
get_global_step_value
,
get_global_step_var
...
@@ -257,9 +256,8 @@ class Trainer(object):
...
@@ -257,9 +256,8 @@ class Trainer(object):
# Predictor related methods. They actually should not be part of a trainer:
# Predictor related methods. They actually should not be part of a trainer:
@
property
@
property
def
vs_name_for_predictor
(
self
):
def
vs_name_for_predictor
(
self
):
"""
# The variable scope name a predictor should be built in.
The variable scope name a predictor should be built in.
# Expected to be changed. Don't use it.
"""
# TODO graphbuilder knows it
# TODO graphbuilder knows it
return
""
return
""
...
@@ -286,8 +284,3 @@ class Trainer(object):
...
@@ -286,8 +284,3 @@ class Trainer(object):
self
.
_predictor_factory
=
PredictorFactory
(
self
.
_predictor_factory
=
PredictorFactory
(
self
.
model
,
self
.
vs_name_for_predictor
)
self
.
model
,
self
.
vs_name_for_predictor
)
return
self
.
_predictor_factory
return
self
.
_predictor_factory
@
deprecated
(
"Please call `Trainer.get_predictor` to create them manually."
)
def
get_predictors
(
self
,
input_names
,
output_names
,
n
):
""" Return n predictors. """
return
[
self
.
get_predictor
(
input_names
,
output_names
,
k
)
for
k
in
range
(
n
)]
tensorpack/train/multigpu.py
View file @
fd682216
...
@@ -231,7 +231,6 @@ class SyncMultiGPUTrainerReplicated(MultiGPUTrainerBase):
...
@@ -231,7 +231,6 @@ class SyncMultiGPUTrainerReplicated(MultiGPUTrainerBase):
"""
"""
apply_prefetch_policy
(
config
,
gpu_prefetch
)
apply_prefetch_policy
(
config
,
gpu_prefetch
)
self
.
_input_source
=
config
.
data
self
.
_input_source
=
config
.
data
logger
.
warn
(
"Note that SyncMultiGPUTrainerReplicated doesn't support inference."
)
super
(
SyncMultiGPUTrainerReplicated
,
self
)
.
__init__
(
config
)
super
(
SyncMultiGPUTrainerReplicated
,
self
)
.
__init__
(
config
)
@
staticmethod
@
staticmethod
...
...
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