MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / fdim

Function fdim

dnn/include/megdnn/dtype/bfloat16.hpp:1822–1824  ·  view source on GitHub ↗

Positive difference. \param x first operand \param y second operand \return \a x - \a y or 0 if difference negative template typename enable ::type fdim(T x, U y) { return functions::fdim(x, y); }

Source from the content-addressed store, hash-verified

1820// template<typename T,typename U> typename enable<expr,T,U>::type
1821// fdim(T x, U y) { return functions::fdim(x, y); }
1822MEGDNN_HOST MEGDNN_DEVICE inline expr fdim(bfloat16 x, bfloat16 y) {
1823 return functions::fdim(x, y);
1824}
1825MEGDNN_HOST MEGDNN_DEVICE inline expr fdim(bfloat16 x, expr y) {
1826 return functions::fdim(x, y);
1827}

Callers 1

fdimMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected