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
55b7cb66
Commit
55b7cb66
authored
Jun 02, 2020
by
Jin Dong
Browse files
remove cast in preprocess
parent
a2d0168e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
official/vision/image_classification/dataset_factory.py
official/vision/image_classification/dataset_factory.py
+0
-1
No files found.
official/vision/image_classification/dataset_factory.py
View file @
55b7cb66
...
...
@@ -477,7 +477,6 @@ class DatasetBuilder:
parsed
=
tf
.
io
.
parse_single_example
(
record
,
keys_to_features
)
label
=
tf
.
reshape
(
parsed
[
'image/class/label'
],
shape
=
[
1
])
label
=
tf
.
cast
(
label
,
dtype
=
tf
.
int32
)
# Subtract one so that labels are in [0, 1000)
label
-=
1
...
...
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