MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / run_strided_view

Function run_strided_view

test/shape_transform_descriptor.cpp:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static 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
109static std::vector<migraphx::operation>
110check_optimize_shape_transforms(const std::vector<std::size_t>& dims,

Callers 1

generate_forFunction · 0.85

Calls 6

iotaFunction · 0.85
reshapeMethod · 0.80
get_argumentMethod · 0.80
element_spaceMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected