Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.tensorflow
Commits
b89aa8ab
Commit
b89aa8ab
authored
Jan 16, 2019
by
Amir MOHAMMADI
Browse files
put a name scpoe for train parts
parent
8606bd03
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/learn/tensorflow/estimators/Regressor.py
View file @
b89aa8ab
...
...
@@ -100,7 +100,7 @@ class Regressor(estimator.Estimator):
# Some layer like tf.layers.batch_norm need this:
update_ops
=
tf
.
get_collection
(
tf
.
GraphKeys
.
UPDATE_OPS
)
with
tf
.
control_dependencies
(
update_ops
):
with
tf
.
control_dependencies
(
update_ops
)
,
tf
.
name_scope
(
'train'
)
:
# Calculate Loss
self
.
loss
=
self
.
_get_loss
(
...
...
Write
Preview
Supports
Markdown
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