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

Function isfinite

dnn/include/megdnn/dtype/half.hpp:2640–2640  ·  view source on GitHub ↗

Check if finite number. \param arg number to check \retval true if neither infinity nor NaN \retval false else template typename enable ::type isfinite(T arg) { return functions::isfinite(arg); }

Source from the content-addressed store, hash-verified

2638 /// \retval false else
2639// template<typename T> typename enable<bool,T>::type isfinite(T arg) { return functions::isfinite(arg); }
2640 MEGDNN_HOST MEGDNN_DEVICE inline bool isfinite(half arg) { return functions::isfinite(arg); }
2641 MEGDNN_HOST MEGDNN_DEVICE inline bool isfinite(expr arg) { return functions::isfinite(arg); }
2642
2643 /// Check for infinity.

Callers 12

__assert_float_equalMethod · 0.50
check_tensor_value_validFunction · 0.50
good_floatFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
good_floatFunction · 0.50
kern_resizeMethod · 0.50
readMethod · 0.50
repFunction · 0.50
repFunction · 0.50
repFunction · 0.50
reduce_fwdFunction · 0.50

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.40
TESTFunction · 0.40
good_floatFunction · 0.40