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

Function TestCase4

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

Test Case 4: larger num_shards.

Source from the content-addressed store, hash-verified

117
118// Test Case 4: larger num_shards.
119TestCase TestCase4() {
120 return {/*range_data_param*/ {0, 10, 1},
121 /*num_shards*/
122 CreateTensor<int64>(TensorShape({}), {7}),
123 /*index*/
124 CreateTensor<int64>(TensorShape({}), {5}),
125 /*require_non_empty*/ true,
126 /*expected_outputs*/
127 {CreateTensor<int64>(TensorShape({}), {5})},
128 /*expected_output_dtypes*/ {DT_INT64},
129 /*expected_output_shapes*/ {PartialTensorShape({})},
130 /*expected_cardinality*/ 1,
131 /*breakpoints*/ {0, 5}};
132}
133
134// Test Case 5: index == num_shards.
135TestCase TestCase5() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected