We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dcdce6 commit ddfa3b7Copy full SHA for ddfa3b7
elasticdl/python/tests/data_reader_test.py
@@ -63,12 +63,13 @@ def test_recordio_data_reader(self):
63
)
64
65
self.assertEqual(len(records), num_records)
66
+ fixed_len_feature = tf.io.FixedLenFeature([1], tf.float32)
67
for record in records:
68
parsed_record = tf.io.parse_single_example(
69
record,
70
{
- "x": tf.io.FixedLenFeature([1], tf.float32),
71
- "y": tf.io.FixedLenFeature([1], tf.float32),
+ "x": fixed_len_feature,
72
+ "y": fixed_len_feature,
73
},
74
75
for k, v in parsed_record.items():
0 commit comments