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
5c0c749b
Commit
5c0c749b
authored
Sep 05, 2018
by
Toby Boyd
Browse files
Add tf.float32 to unittest args
parent
76dbcb5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/resnet/cifar10_test.py
official/resnet/cifar10_test.py
+1
-1
No files found.
official/resnet/cifar10_test.py
View file @
5c0c749b
...
...
@@ -61,7 +61,7 @@ class BaseTest(tf.test.TestCase):
fake_dataset
=
tf
.
data
.
FixedLengthRecordDataset
(
filename
,
cifar10_main
.
_RECORD_BYTES
)
# pylint: disable=protected-access
fake_dataset
=
fake_dataset
.
map
(
lambda
val
:
cifar10_main
.
parse_record
(
val
,
False
))
lambda
val
:
cifar10_main
.
parse_record
(
val
,
False
,
tf
.
float32
))
image
,
label
=
fake_dataset
.
make_one_shot_iterator
().
get_next
()
self
.
assertAllEqual
(
label
.
shape
,
())
...
...
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