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
9ee0418d
Commit
9ee0418d
authored
Nov 14, 2023
by
Umang Yadav
Browse files
Fix test failure
parent
8319e01f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
src/include/migraphx/float8.hpp
src/include/migraphx/float8.hpp
+19
-19
No files found.
src/include/migraphx/float8.hpp
View file @
9ee0418d
...
@@ -350,25 +350,25 @@ class numeric_limits<fp8e5m2>
...
@@ -350,25 +350,25 @@ class numeric_limits<fp8e5m2>
// define numeric limits for the new data type
// define numeric limits for the new data type
// NOLINTBEGIN
// NOLINTBEGIN
namespace
std
{
namespace
std
{
#define MIGRAPHX_FP8_STD_OVERLOADS(T) \
#define MIGRAPHX_FP8_STD_OVERLOADS(T)
\
inline bool isfinite(T x) { return x.is_inf()
; }
\
inline bool isfinite(T x) { return
not
x.is_inf()
and not x.is_nan(); }
\
inline bool isnan(T x) { return x.is_nan(); } \
inline bool isnan(T x) { return x.is_nan(); }
\
template <> \
template <>
\
class numeric_limits<T> : public migraphx::fp8::numeric_limits<T> \
class numeric_limits<T> : public migraphx::fp8::numeric_limits<T>
\
{ \
{
\
}; \
};
\
template <class U> \
template <class U>
\
struct common_type<T, U> : std::common_type<float, U> \
struct common_type<T, U> : std::common_type<float, U>
\
{ \
{
\
}; \
};
\
template <class U> \
template <class U>
\
struct common_type<U, T> : std::common_type<float, U> \
struct common_type<U, T> : std::common_type<float, U>
\
{ \
{
\
}; \
};
\
template <> \
template <>
\
struct common_type<T, T> \
struct common_type<T, T>
\
{ \
{
\
using type = T; \
using type = T;
\
};
};
MIGRAPHX_FP8_STD_OVERLOADS
(
migraphx
::
fp8
::
fp8e4m3fn
)
MIGRAPHX_FP8_STD_OVERLOADS
(
migraphx
::
fp8
::
fp8e4m3fn
)
...
...
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