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
c223f223
Commit
c223f223
authored
Jul 14, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build
parent
4f498c2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tensorpack/tfutils/tower.py
tensorpack/tfutils/tower.py
+2
-1
No files found.
tensorpack/tfutils/tower.py
View file @
c223f223
...
@@ -106,7 +106,8 @@ class TowerContext(object):
...
@@ -106,7 +106,8 @@ class TowerContext(object):
for
c
in
self
.
_ctxs
:
for
c
in
self
.
_ctxs
:
c
.
__enter__
()
c
.
__enter__
()
if
get_tf_version_number
()
>=
1.2
:
# currently only check for predictor towers
if
not
self
.
is_training
and
get_tf_version_number
()
>=
1.2
:
ns
=
tf
.
get_default_graph
()
.
get_name_scope
()
ns
=
tf
.
get_default_graph
()
.
get_name_scope
()
assert
ns
==
self
.
_name
,
\
assert
ns
==
self
.
_name
,
\
"Name conflict: name_scope inside tower '{}' becomes '{}'!"
.
format
(
self
.
_name
,
ns
)
\
"Name conflict: name_scope inside tower '{}' becomes '{}'!"
.
format
(
self
.
_name
,
ns
)
\
...
...
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