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
0c8dbe54
".github/git@developer.sourcefind.cn:change/sglang.git" did not exist on "9b8ebb2798e2cdfe9659de230aea79baf25c0a34"
Commit
0c8dbe54
authored
Aug 02, 2017
by
Marianne Linhares Monteiro
Committed by
GitHub
Aug 02, 2017
Browse files
Removing cast, since it was fixed in another PR
parent
4359c6d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tutorials/image/cifar10_estimator/cifar10.py
tutorials/image/cifar10_estimator/cifar10.py
+1
-2
No files found.
tutorials/image/cifar10_estimator/cifar10.py
View file @
0c8dbe54
...
@@ -69,8 +69,7 @@ class Cifar10DataSet(object):
...
@@ -69,8 +69,7 @@ class Cifar10DataSet(object):
image
=
tf
.
transpose
(
tf
.
reshape
(
image
,
[
DEPTH
,
HEIGHT
,
WIDTH
]),
[
1
,
2
,
0
])
image
=
tf
.
transpose
(
tf
.
reshape
(
image
,
[
DEPTH
,
HEIGHT
,
WIDTH
]),
[
1
,
2
,
0
])
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