Add numeric_limits for MLFloat16 and BFloat16 #22197
12 new alerts
New alerts in code changed by this pull request
- 12 warnings
See annotations below for details.
Annotations
Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits<__int64>::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits<__int64>::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5). Warning
Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc
Code scanning / PREfast
The function 'std::numeric_limits::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5). Warning