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

Function reorder_shape

src/permutation.cpp:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32inline namespace MIGRAPHX_INLINE_NS {
33
34shape reorder_shape(const shape& s, const std::vector<int64_t>& permutation)
35{
36 return {s.type(), reorder_dims(s.lens(), permutation), reorder_dims(s.strides(), permutation)};
37}
38
39std::vector<int64_t> invert_permutation(const std::vector<int64_t>& permutation)
40{

Callers 5

normalize_permutationFunction · 0.70
from_permutationMethod · 0.70
TEST_CASEFunction · 0.50
TEST_CASEFunction · 0.50

Calls 3

lensMethod · 0.80
reorder_dimsFunction · 0.50
typeMethod · 0.45

Tested by 1

TEST_CASEFunction · 0.40