| 147 | } |
| 148 | |
| 149 | TestCase 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 | |
| 166 | TestCase InvalidInputs() { |
| 167 | return { |
no test coverage detected