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
0b8727b0
Commit
0b8727b0
authored
Oct 27, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix old examples
parent
8cea7d8a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
tensorpack/graph_builder/model_desc.py
tensorpack/graph_builder/model_desc.py
+1
-1
tensorpack/train/base.py
tensorpack/train/base.py
+1
-1
tox.ini
tox.ini
+3
-2
No files found.
tensorpack/graph_builder/model_desc.py
View file @
0b8727b0
...
...
@@ -170,7 +170,7 @@ class ModelDesc(ModelDescBase):
[(grad, var)]
"""
ctx
=
get_current_tower_context
()
cost
=
self
.
build_graph_get_cost
(
*
inputs
)
cost
=
self
.
_
build_graph_get_cost
(
*
inputs
)
varlist
=
ctx
.
filter_vars_by_vs_name
(
tf
.
trainable_variables
())
opt
=
self
.
get_optimizer
()
...
...
tensorpack/train/base.py
View file @
0b8727b0
...
...
@@ -289,7 +289,7 @@ class Trainer(object):
return
super
(
Trainer
,
cls
)
.
__new__
(
cls
)
else
:
logger
.
warn
(
"You're calling new trainers with old trainer API!"
)
logger
.
warn
(
"Now it returns the old trainer for you, please switch to use new trainers
correctly
!"
)
logger
.
warn
(
"Now it returns the old trainer for you, please switch to use new trainers
soon
!"
)
logger
.
warn
(
"'SomeTrainer(config, ...).train()' should be equivalent to "
"'launch_train_with_config(config, SomeTrainer(...))' in the new API."
)
return
old_trainer
(
*
args
,
**
kwargs
)
...
...
tox.ini
View file @
0b8727b0
...
...
@@ -4,8 +4,9 @@ ignore = E265,E741,E742,E743
exclude
=
.git,
tensorpack/__init__.py,
setup.py,
snippet,
docs,
examples,
_test.py,
docs/conf.py
snippet,
examples-old,
_test.py,
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