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
77e293be
Commit
77e293be
authored
Mar 26, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix MergeAllSummaries 'run_alone' option (fix #206)
parent
b841edea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
examples/mnist-convnet.py
examples/mnist-convnet.py
+1
-0
tensorpack/callbacks/summary.py
tensorpack/callbacks/summary.py
+4
-0
No files found.
examples/mnist-convnet.py
View file @
77e293be
...
...
@@ -78,6 +78,7 @@ class Model(ModelDesc):
.
FullyConnected
(
'fc0'
,
512
,
nl
=
tf
.
nn
.
relu
)
.
Dropout
(
'dropout'
,
0.5
)
.
FullyConnected
(
'fc1'
,
out_dim
=
10
,
nl
=
tf
.
identity
)())
prob
=
tf
.
nn
.
softmax
(
logits
,
name
=
'prob'
)
# a Bx10 with probabilities
# a vector of length B with loss of each sample
...
...
tensorpack/callbacks/summary.py
View file @
77e293be
...
...
@@ -73,3 +73,7 @@ class MergeAllSummaries(Callback):
def
_trigger
(
self
):
summary
=
self
.
summary_op
.
eval
()
self
.
trainer
.
monitors
.
put_summary
(
summary
)
def
_trigger_epoch
(
self
):
if
self
.
_run_alone
:
self
.
_trigger
()
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