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
0b615550
Commit
0b615550
authored
Mar 29, 2018
by
vfdev
Committed by
Yuxin Wu
Mar 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix small typos (#717)
* Fix typos * Fix typo * Fix typo
parent
2cace49f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
tensorpack/contrib/keras.py
tensorpack/contrib/keras.py
+1
-1
tensorpack/graph_builder/distributed.py
tensorpack/graph_builder/distributed.py
+1
-1
tensorpack/graph_builder/model_desc.py
tensorpack/graph_builder/model_desc.py
+1
-1
No files found.
tensorpack/contrib/keras.py
View file @
0b615550
...
@@ -78,7 +78,7 @@ class KerasPhaseCallback(Callback):
...
@@ -78,7 +78,7 @@ class KerasPhaseCallback(Callback):
self
.
_learning_phase
=
keras
.
backend
.
learning_phase
()
self
.
_learning_phase
=
keras
.
backend
.
learning_phase
()
def
_setup_graph
(
self
):
def
_setup_graph
(
self
):
logger
.
info
(
"Using Keras le
ra
ning phase {} in the graph!"
.
format
(
logger
.
info
(
"Using Keras le
ar
ning phase {} in the graph!"
.
format
(
self
.
_learning_phase
.
name
))
self
.
_learning_phase
.
name
))
cbs
=
self
.
trainer
.
_callbacks
.
cbs
cbs
=
self
.
trainer
.
_callbacks
.
cbs
for
cb
in
cbs
:
for
cb
in
cbs
:
...
...
tensorpack/graph_builder/distributed.py
View file @
0b615550
...
@@ -267,7 +267,7 @@ class DistributedReplicatedBuilder(DataParallelBuilder, DistributedBuilderBase):
...
@@ -267,7 +267,7 @@ class DistributedReplicatedBuilder(DataParallelBuilder, DistributedBuilderBase):
1. the training op.
1. the training op.
2. the op which sync all the local variables from PS.
2. the op which sync all the local variables from PS.
This op sho
lu
d be run before training.
This op sho
ul
d be run before training.
3. the op which sync all the local `MODEL_VARIABLES` from PS.
3. the op which sync all the local `MODEL_VARIABLES` from PS.
You can choose how often to run it by yourself.
You can choose how often to run it by yourself.
...
...
tensorpack/graph_builder/model_desc.py
View file @
0b615550
...
@@ -105,7 +105,7 @@ class ModelDescBase(object):
...
@@ -105,7 +105,7 @@ class ModelDescBase(object):
with
tf
.
Graph
()
.
as_default
()
as
G
:
# create these placeholder in a temporary graph
with
tf
.
Graph
()
.
as_default
()
as
G
:
# create these placeholder in a temporary graph
inputs
=
self
.
inputs
()
inputs
=
self
.
inputs
()
for
p
in
inputs
:
for
p
in
inputs
:
assert
p
.
graph
==
G
,
"Placeholders returned by inputs() sho
lu
d be created inside inputs()!"
assert
p
.
graph
==
G
,
"Placeholders returned by inputs() sho
ul
d be created inside inputs()!"
return
[
InputDesc
.
from_placeholder
(
p
)
for
p
in
inputs
]
return
[
InputDesc
.
from_placeholder
(
p
)
for
p
in
inputs
]
def
_get_inputs
(
self
):
def
_get_inputs
(
self
):
...
...
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