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

Function InvalidInputs

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

Source from the content-addressed store, hash-verified

164}
165
166TestCase InvalidInputs() {
167 return {
168 /*arguments*/ {
169 CreateTensor<int64>(TensorShape({3, 2}), {0, 1, 2, 3, 4, 5}),
170 CreateTensor<int64>(TensorShape({2, 2}), {0, 1, 2, 3})},
171 /*captured_inputs*/
172 {CreateTensor<int64>(TensorShape({2}), {10, 100})},
173 /*t_arguments*/ {DT_INT64, DT_INT64},
174 /*t_captured*/ {DT_INT64},
175 /*func*/ {FunctionDefHelper::FunctionRef("XAddY", {{"T", DT_INT64}})},
176 /*func_lib*/ {test::function::XAddY()},
177 /*max_intra_op_parallelism*/ 2,
178 /*output_dtypes*/ {DT_INT64},
179 /*output_shapes*/ {PartialTensorShape({2})},
180 /*expected_outputs*/
181 {CreateTensor<int64>(TensorShape({3, 2}), {10, 101, 12, 103, 14, 105})}};
182}
183
184class ParameterizedMapDefunOpTest
185 : public MapDefunOpTest,

Callers 1

TEST_FFunction · 0.85

Calls 3

XAddYFunction · 0.85
PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected