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
db36b929
Commit
db36b929
authored
Dec 20, 2017
by
Patrick Wieschollek
Committed by
Yuxin Wu
Dec 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more verbose warning (#561)
parent
28ae84d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tensorpack/models/registry.py
tensorpack/models/registry.py
+2
-1
No files found.
tensorpack/models/registry.py
View file @
db36b929
...
@@ -82,7 +82,8 @@ def layer_register(
...
@@ -82,7 +82,8 @@ def layer_register(
if
use_scope
:
if
use_scope
:
name
,
inputs
=
args
[
0
],
args
[
1
]
name
,
inputs
=
args
[
0
],
args
[
1
]
args
=
args
[
1
:]
# actual positional args used to call func
args
=
args
[
1
:]
# actual positional args used to call func
assert
isinstance
(
name
,
six
.
string_types
),
name
assert
isinstance
(
name
,
six
.
string_types
),
"First argument for
\"
{}
\"
should be a string. "
.
format
(
func
.
__name__
)
+
"Did you forget to specify the name of the layer?"
else
:
else
:
assert
not
log_shape
assert
not
log_shape
if
isinstance
(
args
[
0
],
six
.
string_types
):
if
isinstance
(
args
[
0
],
six
.
string_types
):
...
...
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