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
6a1e822d
Commit
6a1e822d
authored
Oct 26, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
7bb9ee1c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
examples/cifar-convnet.py
examples/cifar-convnet.py
+1
-1
tensorpack/train/trainers.py
tensorpack/train/trainers.py
+1
-0
No files found.
examples/cifar-convnet.py
View file @
6a1e822d
...
...
@@ -154,5 +154,5 @@ if __name__ == '__main__':
nr_gpu
=
len
(
args
.
gpu
.
split
(
','
))
trainer
=
QueueInputTrainer
()
if
nr_gpu
<=
1
\
else
SyncMultiGPUTrainerParameterServer
(
list
(
range
(
nr_gpu
))
)
else
SyncMultiGPUTrainerParameterServer
(
nr_gpu
)
launch_train_with_config
(
config
,
trainer
)
tensorpack/train/trainers.py
View file @
6a1e822d
...
...
@@ -36,6 +36,7 @@ def _int_to_range(x):
if
isinstance
(
x
,
int
):
assert
x
>
0
,
x
return
list
(
range
(
x
))
return
x
class
SimpleTrainer
(
SingleCostTrainer
):
...
...
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