Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.tensorflow
Commits
c1ceedf7
Commit
c1ceedf7
authored
Oct 29, 2017
by
Amir MOHAMMADI
Browse files
loss is summarized by default in tensorflow 1.4
parent
d32a1cce
Pipeline
#13536
failed with stages
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/learn/tensorflow/network/SimpleCNN.py
View file @
c1ceedf7
...
...
@@ -101,10 +101,6 @@ def model_fn(features, labels, mode, params=None, config=None):
loss
=
tf
.
losses
.
sparse_softmax_cross_entropy
(
logits
=
logits
,
labels
=
labels
)
with
tf
.
name_scope
(
'train_metrics'
):
# Create a tensor named train_loss for logging purposes
tf
.
summary
.
scalar
(
'train_loss'
,
loss
)
# Configure the Training Op (for TRAIN mode)
if
mode
==
tf
.
estimator
.
ModeKeys
.
TRAIN
:
optimizer
=
tf
.
train
.
GradientDescentOptimizer
(
...
...
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