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

Function TestCase2

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

Test Case 2: zero offset.

Source from the content-addressed store, hash-verified

85
86// Test Case 2: zero offset.
87TestCase TestCase2() {
88 return {/*range_data_param*/ {0, 10, 1},
89 /*num_shards*/
90 CreateTensor<int64>(TensorShape({}), {5}),
91 /*index*/
92 CreateTensor<int64>(TensorShape({}), {0}),
93 /*require_non_empty*/ true,
94 /*expected_outputs*/
95 {CreateTensor<int64>(TensorShape({}), {0}),
96 CreateTensor<int64>(TensorShape({}), {5})},
97 /*expected_output_dtypes*/ {DT_INT64},
98 /*expected_output_shapes*/ {PartialTensorShape({})},
99 /*expected_cardinality*/ 2,
100 /*breakpoints*/ {0, 1, 5}};
101}
102
103// Test Case 3: iterator ends before first element.
104TestCase TestCase3() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected