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

Function InvalidOutputShapes

tensorflow/core/kernels/data/map_defun_op_test.cc:149–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149TestCase InvalidOutputShapes() {
150 return {
151 /*arguments*/ {
152 CreateTensor<int64>(TensorShape({3, 2}), {0, 1, 2, 3, 4, 5})},
153 /*captured_inputs*/
154 {CreateTensor<int64>(TensorShape({2}), {10, 100})},
155 /*t_arguments*/ {DT_INT64},
156 /*t_captured*/ {DT_INT64},
157 /*func*/ {FunctionDefHelper::FunctionRef("XAddY", {{"T", DT_INT64}})},
158 /*func_lib*/ {test::function::XAddY()},
159 /*max_intra_op_parallelism*/ 2,
160 /*output_dtypes*/ {DT_INT64},
161 /*output_shapes*/ {PartialTensorShape({2, 2})},
162 /*expected_outputs*/
163 {CreateTensor<int64>(TensorShape({3, 2}), {10, 101, 12, 103, 14, 105})}};
164}
165
166TestCase InvalidInputs() {
167 return {

Callers 1

TEST_FFunction · 0.85

Calls 3

XAddYFunction · 0.85
PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected