| 164 | } |
| 165 | |
| 166 | TestCase 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 | |
| 184 | class ParameterizedMapDefunOpTest |
| 185 | : public MapDefunOpTest, |
no test coverage detected