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
fc846697
Commit
fc846697
authored
Jun 05, 2020
by
A. Unique TensorFlower
Browse files
Merge pull request #8565 from djdongjin:label_cast
PiperOrigin-RevId: 315024646
parents
b4df77a0
55b7cb66
Changes
1
Show 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 @
fc846697
...
...
@@ -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