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
7639c280
Commit
7639c280
authored
Nov 10, 2023
by
Umang Yadav
Browse files
use float equal
parent
4e9d51f0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
test/fp8e4m3fn.cpp
test/fp8e4m3fn.cpp
+5
-1
test/fp8e4m3fnuz.cpp
test/fp8e4m3fnuz.cpp
+5
-0
No files found.
test/fp8e4m3fn.cpp
View file @
7639c280
...
...
@@ -198,5 +198,9 @@ TEST_CASE(test_numeric_lowest_2)
EXPECT
(
fp8_lowest
==
std
::
numeric_limits
<
migraphx_fp8
::
fp8e4m3fn
>::
lowest
());
}
TEST_CASE
(
test_max_eq_lowest
)
{}
TEST_CASE
(
test_max_eq_lowest
)
{
EXPECT
(
migraphx
::
float_equal
(
std
::
numeric_limits
<
migraphx_fp8
::
fp8e4m3fn
>::
lowest
(),
-
1
*
std
::
numeric_limits
<
migraphx_fp8
::
fp8e4m3fn
>::
max
()));
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
test
::
run
(
argc
,
argv
);
}
test/fp8e4m3fnuz.cpp
View file @
7639c280
...
...
@@ -222,4 +222,9 @@ TEST_CASE(test_numeric_lowest_2)
EXPECT
(
fp8_lowest
==
std
::
numeric_limits
<
migraphx_fp8
::
fp8e4m3fnuz
>::
lowest
());
}
TEST_CASE
(
test_max_eq_lowest
)
{
EXPECT
(
migraphx
::
float_equal
(
std
::
numeric_limits
<
migraphx_fp8
::
fp8e4m3fnuz
>::
lowest
(),
-
1
*
std
::
numeric_limits
<
migraphx_fp8
::
fp8e4m3fnuz
>::
max
()));
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
test
::
run
(
argc
,
argv
);
}
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