| 98 | } |
| 99 | |
| 100 | static std::vector<int64_t> run_strided_view(const migraphx::shape& s, std::int64_t offset) |
| 101 | { |
| 102 | auto n = s.element_space(); |
| 103 | std::vector<int64_t> data(n); |
| 104 | std::iota(data.begin(), data.end(), offset); |
| 105 | migraphx::literal l(migraphx::shape{migraphx::shape::int64_type, {n}}, data); |
| 106 | return l.get_argument().reshape(s).to_vector<int64_t>(); |
| 107 | } |
| 108 | |
| 109 | static std::vector<migraphx::operation> |
| 110 | check_optimize_shape_transforms(const std::vector<std::size_t>& dims, |
no test coverage detected