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
c77433d5
You need to sign in or sign up before continuing.
Commit
c77433d5
authored
Apr 20, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small sanity check
parent
75925343
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
tensorpack/models/common.py
tensorpack/models/common.py
+1
-0
tensorpack/train/config.py
tensorpack/train/config.py
+2
-0
No files found.
tensorpack/models/common.py
View file @
c77433d5
...
@@ -65,6 +65,7 @@ def layer_register(
...
@@ -65,6 +65,7 @@ def layer_register(
def
wrapper
(
func
):
def
wrapper
(
func
):
@
wraps
(
func
)
@
wraps
(
func
)
def
wrapped_func
(
*
args
,
**
kwargs
):
def
wrapped_func
(
*
args
,
**
kwargs
):
assert
args
[
0
]
is
not
None
,
args
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
...
...
tensorpack/train/config.py
View file @
c77433d5
...
@@ -81,6 +81,8 @@ class TrainConfig(object):
...
@@ -81,6 +81,8 @@ class TrainConfig(object):
assert_type
(
self
.
data
,
InputData
)
assert_type
(
self
.
data
,
InputData
)
self
.
dataflow
=
None
self
.
dataflow
=
None
if
callbacks
is
None
:
callbacks
=
[]
if
isinstance
(
callbacks
,
Callbacks
):
if
isinstance
(
callbacks
,
Callbacks
):
# keep quiet now because I haven't determined the final API yet.
# keep quiet now because I haven't determined the final API yet.
log_deprecated
(
log_deprecated
(
...
...
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