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
1c59e4f0
Commit
1c59e4f0
authored
Dec 18, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use func.__name__ for unknown layers in argscope patch
parent
e57425b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tensorpack/tfutils/argscope.py
tensorpack/tfutils/argscope.py
+1
-1
No files found.
tensorpack/tfutils/argscope.py
View file @
1c59e4f0
...
@@ -78,7 +78,7 @@ def argscope_mapper(func, log_shape=True):
...
@@ -78,7 +78,7 @@ def argscope_mapper(func, log_shape=True):
in_tensor
=
args
[
0
]
in_tensor
=
args
[
0
]
ctx
=
get_current_tower_context
()
ctx
=
get_current_tower_context
()
name
=
'<unkown>'
if
'name'
not
in
kwargs
else
kwargs
[
'name'
]
name
=
func
.
__name__
if
'name'
not
in
kwargs
else
kwargs
[
'name'
]
if
log_shape
:
if
log_shape
:
if
(
'tower'
not
in
ctx
.
ns_name
.
lower
())
or
ctx
.
is_main_training_tower
:
if
(
'tower'
not
in
ctx
.
ns_name
.
lower
())
or
ctx
.
is_main_training_tower
:
logger
.
info
(
'
%20
s:
%20
s ->
%20
s'
%
logger
.
info
(
'
%20
s:
%20
s ->
%20
s'
%
...
...
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