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
3145729a
Commit
3145729a
authored
Dec 17, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lint
parent
6bee3c24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tensorpack/graph_builder/training.py
tensorpack/graph_builder/training.py
+1
-1
tensorpack/graph_builder/utils.py
tensorpack/graph_builder/utils.py
+1
-1
No files found.
tensorpack/graph_builder/training.py
View file @
3145729a
...
...
@@ -143,7 +143,7 @@ class SyncMultiGPUParameterServerBuilder(DataParallelBuilder):
# self.train_op = tf.group(*ops)
# return
grads
=
average_grads
(
grad_list
,
colocat
e
=
True
)
grads
=
average_grads
(
grad_list
,
colocat
ion
=
True
)
# grads = grad_list[0]
opt
=
get_opt_fn
()
...
...
tensorpack/graph_builder/utils.py
View file @
3145729a
...
...
@@ -172,7 +172,7 @@ class OverrideCachingDevice(object):
if
size
is
None
:
# print(args, kwargs)
return
getter
(
*
args
,
**
kwargs
)
if
kwargs
.
get
(
'trainable'
,
True
)
==
False
:
if
not
kwargs
.
get
(
'trainable'
,
True
)
:
return
getter
(
*
args
,
**
kwargs
)
if
size
<
self
.
small_variable_size_threshold
:
device_name
=
self
.
device_for_small_variables
...
...
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