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

Function TestCase3

tensorflow/core/kernels/data/window_dataset_op_test.cc:114–138  ·  view source on GitHub ↗

Test case 3: size=8, shift=3, stride=1, drop_remainder=false.

Source from the content-addressed store, hash-verified

112
113// Test case 3: size=8, shift=3, stride=1, drop_remainder=false.
114TestCase TestCase3() {
115 return {/*range_data_param*/ {0, 7, 1},
116 /*size*/ CreateTensor<int64>(TensorShape({}), {8}),
117 /*shift*/ CreateTensor<int64>(TensorShape({}), {3}),
118 /*stride*/ CreateTensor<int64>(TensorShape({}), {1}),
119 /*drop_remainder*/
120 CreateTensor<bool>(TensorShape({}), {false}),
121 /*expected_outputs*/
122 {{CreateTensor<int64>(TensorShape({}), {0}),
123 CreateTensor<int64>(TensorShape({}), {1}),
124 CreateTensor<int64>(TensorShape({}), {2}),
125 CreateTensor<int64>(TensorShape({}), {3}),
126 CreateTensor<int64>(TensorShape({}), {4}),
127 CreateTensor<int64>(TensorShape({}), {5}),
128 CreateTensor<int64>(TensorShape({}), {6})},
129 {CreateTensor<int64>(TensorShape({}), {3}),
130 CreateTensor<int64>(TensorShape({}), {4}),
131 CreateTensor<int64>(TensorShape({}), {5}),
132 CreateTensor<int64>(TensorShape({}), {6})},
133 {CreateTensor<int64>(TensorShape({}), {6})}},
134 /*expected_output_dtypes*/ {DT_VARIANT},
135 /*expected_output_shapes*/ {PartialTensorShape({})},
136 /*expected_cardinality*/ 3,
137 /*breakpoints*/ {0, 1, 9}};
138}
139
140// Test case 4: size=8, shift=3, stride=1, drop_remainder=true.
141TestCase TestCase4() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected