Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ROCm/AMDMIGraphX
/ invert_permutation
Function
invert_permutation
src/permutation.cpp:39–42 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
37
}
38
39
std::vector<int64_t> invert_permutation(const std::vector<int64_t>& permutation)
40
{
41
return sort_permutation(permutation, std::less<>{});
42
}
43
44
std::vector<int64_t> find_permutation(const shape& s)
45
{
Callers
7
apply
Method · 0.70
generate
Method · 0.70
generate_shape_transforms_for
Function · 0.70
apply
Method · 0.70
apply
Method · 0.70
from_permutation
Method · 0.70
TEST_CASE
Function · 0.50
Calls
1
sort_permutation
Function · 0.85
Tested by
1
TEST_CASE
Function · 0.40