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
c2edd999
Commit
c2edd999
authored
Jun 22, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow >=10 GPUs. (fix #310)
parent
c1a280a2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
tensorpack/tfutils/tower.py
tensorpack/tfutils/tower.py
+5
-1
tensorpack/train/distributed.py
tensorpack/train/distributed.py
+1
-1
No files found.
tensorpack/tfutils/tower.py
View file @
c2edd999
...
@@ -72,11 +72,15 @@ class TowerContext(object):
...
@@ -72,11 +72,15 @@ class TowerContext(object):
def
vs_name
(
self
):
def
vs_name
(
self
):
return
self
.
_vs_name
return
self
.
_vs_name
# TODO pass index into the constructor
@
property
@
property
def
index
(
self
):
def
index
(
self
):
if
self
.
_name
==
''
:
if
self
.
_name
==
''
:
return
0
return
0
return
int
(
self
.
_name
[
-
1
])
idx
=
re
.
findall
(
'[0-9]+$'
,
self
.
_name
)
if
len
(
idx
)
==
0
:
return
0
return
int
(
idx
[
0
])
@
property
@
property
def
device
(
self
):
def
device
(
self
):
...
...
tensorpack/train/distributed.py
View file @
c2edd999
...
@@ -179,7 +179,7 @@ class DistributedReplicatedTrainer(SingleCostFeedfreeTrainer):
...
@@ -179,7 +179,7 @@ class DistributedReplicatedTrainer(SingleCostFeedfreeTrainer):
if
self
.
job_name
==
'ps'
:
if
self
.
job_name
==
'ps'
:
logger
.
info
(
"Running ps {}"
.
format
(
self
.
task_index
))
logger
.
info
(
"Running ps {}"
.
format
(
self
.
task_index
))
logger
.
info
(
"Kill me with 'kill {}'"
.
format
(
os
.
getpid
()))
logger
.
info
(
"Kill me with 'kill {}'"
.
format
(
os
.
getpid
()))
self
.
server
.
join
()
# this will never return #4713
self
.
server
.
join
()
# this will never return
tensorflow
#4713
return
return
with
tf
.
device
(
self
.
param_server_device
):
with
tf
.
device
(
self
.
param_server_device
):
gs
=
get_global_step_var
()
gs
=
get_global_step_var
()
...
...
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