Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ROCm/AMDMIGraphX
/ abs
Function
abs
src/generate.cpp:115–118 ·
view source on GitHub ↗
TODO: Move to literal.cpp
Source
from the content-addressed store, hash-verified
113
114
// TODO: Move to literal.cpp
115
literal abs(literal l)
116
{
117
return transform(std::move(l), [](auto x) { return std::fabs(x); });
118
}
119
120
} // namespace MIGRAPHX_INLINE_NS
121
} // namespace migraphx
Callers
11
find_nearest_shortage_axis
Method · 0.70
create_program
Method · 0.50
create_program
Method · 0.50
create_program
Method · 0.50
add_bn
Method · 0.50
add_bn
Method · 0.50
TEST_CASE
Function · 0.50
within_abs
Method · 0.50
__init__
Method · 0.50
set_clip_options
Method · 0.50
main
Function · 0.50
Calls
2
fabs
Function · 0.85
transform
Function · 0.50
Tested by
7
create_program
Method · 0.40
create_program
Method · 0.40
create_program
Method · 0.40
add_bn
Method · 0.40
add_bn
Method · 0.40
TEST_CASE
Function · 0.40
within_abs
Method · 0.40