Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c0c749

Browse files
committed
Add tf.float32 to unittest args
1 parent 76dbcb5 commit 5c0c749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/resnet/cifar10_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_dataset_input_fn(self):
6161
fake_dataset = tf.data.FixedLengthRecordDataset(
6262
filename, cifar10_main._RECORD_BYTES) # pylint: disable=protected-access
6363
fake_dataset = fake_dataset.map(
64-
lambda val: cifar10_main.parse_record(val, False))
64+
lambda val: cifar10_main.parse_record(val, False, tf.float32))
6565
image, label = fake_dataset.make_one_shot_iterator().get_next()
6666

6767
self.assertAllEqual(label.shape, ())

0 commit comments

Comments
 (0)