Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
483366a0
Commit
483366a0
authored
Nov 09, 2023
by
Umang Yadav
Browse files
Add std::isnan
parent
2f861364
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/include/migraphx/migraphx_float8.hpp
src/include/migraphx/migraphx_float8.hpp
+10
-0
No files found.
src/include/migraphx/migraphx_float8.hpp
View file @
483366a0
...
@@ -615,6 +615,16 @@ inline bool isfinite(migraphx_fp8::hip_f8<migraphx_fp8::hip_f8_type::bf8> x) //
...
@@ -615,6 +615,16 @@ inline bool isfinite(migraphx_fp8::hip_f8<migraphx_fp8::hip_f8_type::bf8> x) //
return
x
.
is_inf
();
return
x
.
is_inf
();
}
}
inline
bool
isnan
(
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>
x
)
// NOLINT
{
return
x
.
is_nan
();
}
inline
bool
isnan
(
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
bf8
>
x
)
// NOLINT
{
return
x
.
is_nan
();
}
template
<
>
template
<
>
class
numeric_limits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>>
class
numeric_limits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>>
:
public
migraphx_fp8
::
NumericLimits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>>
:
public
migraphx_fp8
::
NumericLimits
<
migraphx_fp8
::
hip_f8
<
migraphx_fp8
::
hip_f8_type
::
fp8
>>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment