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
b1850e0b
Commit
b1850e0b
authored
Mar 17, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix old examples again
parent
0cfc0889
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
tensorpack/train/base.py
tensorpack/train/base.py
+1
-0
tensorpack/train/config.py
tensorpack/train/config.py
+2
-0
No files found.
tensorpack/train/base.py
View file @
b1850e0b
...
...
@@ -117,6 +117,7 @@ class Trainer(object):
logger
.
warn
(
"This could happen if you wrote a custom trainer before."
)
logger
.
warn
(
"It may work now through some hacks, but please switch to the new API!"
)
logger
.
warn
(
"See https://github.com/ppwwyyxx/tensorpack/issues/458 for more information."
)
config
.
_deprecated_parsing
()
self
.
_config
=
config
self
.
inputs_desc
=
config
.
model
.
get_inputs_desc
()
self
.
tower_func
=
TowerFuncWrapper
(
...
...
tensorpack/train/config.py
View file @
b1850e0b
...
...
@@ -151,6 +151,8 @@ class TrainConfig(object):
self
.
nr_tower
=
kwargs
.
pop
(
'nr_tower'
)
if
'tower'
in
kwargs
:
self
.
tower
=
kwargs
.
pop
(
'tower'
)
else
:
self
.
tower
=
[
0
]
assert
len
(
kwargs
)
==
0
,
"Unknown arguments: {}"
.
format
(
kwargs
.
keys
())
@
property
...
...
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