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

Function TestCase1

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

Test Case 1: simple case.

Source from the content-addressed store, hash-verified

68
69// Test Case 1: simple case.
70TestCase TestCase1() {
71 return {/*range_data_param*/ {0, 10, 1},
72 /*num_shards*/
73 CreateTensor<int64>(TensorShape({}), {5}),
74 /*index*/
75 CreateTensor<int64>(TensorShape({}), {2}),
76 /*require_non_empty*/ true,
77 /*expected_outputs*/
78 {CreateTensor<int64>(TensorShape({}), {2}),
79 CreateTensor<int64>(TensorShape({}), {7})},
80 /*expected_output_dtypes*/ {DT_INT64},
81 /*expected_output_shapes*/ {PartialTensorShape({})},
82 /*expected_cardinality*/ 2,
83 /*breakpoints*/ {0, 1, 5}};
84}
85
86// Test Case 2: zero offset.
87TestCase TestCase2() {

Callers 2

TEST_FFunction · 0.70

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected