Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
2cc4b2e2
Commit
2cc4b2e2
authored
Aug 01, 2017
by
Marianne Linhares Monteiro
Committed by
GitHub
Aug 01, 2017
Browse files
Adding image = tf.cast(image, tf.float32)
parent
751bfb3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tutorials/image/cifar10_estimator/cifar10.py
tutorials/image/cifar10_estimator/cifar10.py
+1
-0
No files found.
tutorials/image/cifar10_estimator/cifar10.py
View file @
2cc4b2e2
...
@@ -70,6 +70,7 @@ class Cifar10DataSet(object):
...
@@ -70,6 +70,7 @@ class Cifar10DataSet(object):
label
=
tf
.
cast
(
features
[
'label'
],
tf
.
int32
)
label
=
tf
.
cast
(
features
[
'label'
],
tf
.
int32
)
# Custom preprocessing .
# Custom preprocessing .
image
=
tf
.
cast
(
image
,
tf
.
float32
)
image
=
self
.
preprocess
(
image
)
image
=
self
.
preprocess
(
image
)
return
image
,
label
return
image
,
label
...
...
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