MCPcopy 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
115literal 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

create_programMethod · 0.50
create_programMethod · 0.50
create_programMethod · 0.50
add_bnMethod · 0.50
add_bnMethod · 0.50
TEST_CASEFunction · 0.50
within_absMethod · 0.50
__init__Method · 0.50
set_clip_optionsMethod · 0.50
mainFunction · 0.50

Calls 2

fabsFunction · 0.85
transformFunction · 0.50

Tested by 7

create_programMethod · 0.40
create_programMethod · 0.40
create_programMethod · 0.40
add_bnMethod · 0.40
add_bnMethod · 0.40
TEST_CASEFunction · 0.40
within_absMethod · 0.40