| 6 | }; |
| 7 | |
| 8 | TEST_P(PrimitiveTest, StridedFill) { |
| 9 | const Device device = GetParam(); |
| 10 | StorageView x({3, 2}, float(0), device); |
| 11 | StorageView expected({3, 2}, std::vector<float>{1, 0, 1, 0, 1, 0}, device); |
| 12 | DEVICE_DISPATCH(device, primitives<D>::strided_fill(x.data<float>(), 1.f, 2, 3)); |
| 13 | expect_storage_eq(x, expected); |
| 14 | } |
| 15 | |
| 16 | TEST_P(PrimitiveTest, IndexedFill) { |
| 17 | const Device device = GetParam(); |
nothing calls this directly
no test coverage detected