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

Function get_pointer_subdimensions

src/shape_transform_descriptor.cpp:114–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112
113template <class Vector>
114static std::vector<dimension::sub*> get_pointer_subdimensions(Vector& v)
115{
116 std::vector<dimension::sub*> result;
117 for_each_subdimension(v, [&](dimension::sub& s) { result.push_back(&s); });
118 return result;
119}
120
121template <class Dimensions, class Range, class F>
122static void for_each_subdimension(Dimensions&& dimensions, Range&& r, F f)

Callers 2

swap_closer_axesMethod · 0.85

Calls 2

for_each_subdimensionFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected