MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TestCase3

Function TestCase3

tensorflow/core/kernels/data/shard_dataset_op_test.cc:104–116  ·  view source on GitHub ↗

Test Case 3: iterator ends before first element.

Source from the content-addressed store, hash-verified

102
103// Test Case 3: iterator ends before first element.
104TestCase TestCase3() {
105 return {/*range_data_param*/ {0, 1, 1},
106 /*num_shards*/
107 CreateTensor<int64>(TensorShape({}), {5}),
108 /*index*/
109 CreateTensor<int64>(TensorShape({}), {2}),
110 /*require_non_empty*/ true,
111 /*expected_outputs*/ {},
112 /*expected_output_dtypes*/ {DT_INT64},
113 /*expected_output_shapes*/ {PartialTensorShape({})},
114 /*expected_cardinality*/ 0,
115 /*breakpoints*/ {0, 1}};
116}
117
118// Test Case 4: larger num_shards.
119TestCase TestCase4() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected