| 52 | }; |
| 53 | |
| 54 | TEST(ShapeOpTest, OutTypeInt) { |
| 55 | ShapeOpModel<int32_t> model({1, 3, 1, 3, 5}, TensorType_FLOAT32, |
| 56 | TensorType_INT32); |
| 57 | model.Invoke(); |
| 58 | |
| 59 | EXPECT_THAT(model.GetOutput(), ElementsAreArray({1, 3, 1, 3, 5})); |
| 60 | EXPECT_THAT(model.GetOutputShape(), ElementsAreArray({5})); |
| 61 | } |
| 62 | |
| 63 | TEST(ShapeOpTest, OutTypeInt64) { |
| 64 | ShapeOpModel<int64_t> model({1, 3, 1, 3, 5}, TensorType_FLOAT32, |
nothing calls this directly
no test coverage detected