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

Function set_origin_axis

src/shape_transform_descriptor.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static void set_origin_axis(dimension::sub& s, const std::vector<std::size_t>& axis)
139{
140 assert(s.axis.empty() or s.hidden_axis.empty());
141 if(s.has_hidden_axis())
142 s.hidden_axis = axis;
143 else
144 s.axis = axis;
145}
146
147// Group all axes into a map with a key of the axis and the value is vector of
148// all subdimensions that have that axis.

Callers 4

renumber_axesFunction · 0.85
to_common_from_dstMethod · 0.85
to_dst_from_commonMethod · 0.85
to_src_from_commonMethod · 0.85

Calls 2

emptyMethod · 0.45
has_hidden_axisMethod · 0.45

Tested by

no test coverage detected