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
3f1e9a14
Commit
3f1e9a14
authored
Sep 26, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple trainer accept config with no dataflow.
parent
41ba7284
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
tensorpack/train/config.py
tensorpack/train/config.py
+6
-7
No files found.
tensorpack/train/config.py
View file @
3f1e9a14
...
...
@@ -72,15 +72,14 @@ class TrainConfig(object):
if
'dataset'
in
kwargs
:
dataflow
=
kwargs
.
pop
(
'dataset'
)
log_deprecated
(
"TrainConfig.dataset"
,
"Use TrainConfig.dataflow instead."
,
"2017-09-11"
)
assert
data
is
None
or
dataflow
is
None
,
"dataflow and data cannot be both presented in TrainConfig!"
if
dataflow
is
not
None
:
assert
data
is
None
,
"dataflow and data cannot be both presented in TrainConfig!"
self
.
dataflow
=
dataflow
assert_type
(
self
.
dataflow
,
DataFlow
)
self
.
data
=
None
assert_type
(
dataflow
,
DataFlow
)
if
data
is
not
None
:
self
.
data
=
data
assert_type
(
self
.
data
,
InputSource
)
self
.
dataflow
=
None
assert_type
(
data
,
InputSource
)
self
.
dataflow
=
dataflow
self
.
data
=
data
if
model
is
not
None
:
assert_type
(
model
,
ModelDescBase
)
self
.
model
=
model
...
...
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