Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add numeric_limits for MLFloat16 and BFloat16 #22197

Merged
merged 5 commits into from
Sep 26, 2024

test Clip-12

44ee680
Select commit
Loading
Failed to load commit list.
Merged

Add numeric_limits for MLFloat16 and BFloat16 #22197

test Clip-12
44ee680
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / PREfast succeeded Sep 25, 2024 in 4s

12 new alerts

New alerts in code changed by this pull request

  • 12 warnings

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits<__int64>::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 65 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits::lowest' is constexpr, mark variable 'min_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits<__int64>::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5).

Check warning on line 66 in onnxruntime/core/providers/cuda/math/clip.cc

See this annotation in the file changed.

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

The function 'std::numeric_limits::max' is constexpr, mark variable 'max_default' constexpr if compile-time evaluation is desired (con.5).