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
composable_kernel_ROCM
Commits
ebc4561f
Commit
ebc4561f
authored
Jan 06, 2025
by
illsilin
Browse files
fix test_bf6
parent
d44b24d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/data_type/test_bf6.cpp
test/data_type/test_bf6.cpp
+1
-1
No files found.
test/data_type/test_bf6.cpp
View file @
ebc4561f
...
...
@@ -40,7 +40,7 @@ TEST(BF6, ConvertFP32Nearest)
type_convert
<
float
>
(
bf6_convert_rne
(
std
::
numeric_limits
<
float
>::
infinity
())),
0.0
f
);
// convert float value less than bf6 subnorm to bf6 and back, check if equal to 0.0
float
less_than_subnorm
=
0.0
6
25
f
;
float
less_than_subnorm
=
0.0
31
25
f
;
ASSERT_NEAR
(
0.0
f
,
type_convert
<
float
>
(
bf6_convert_rne
(
less_than_subnorm
)),
0.0
f
);
// convert float NaN to bf6 and back, check if clipped to max_bf6
ASSERT_NEAR
(
max_bf6
,
...
...
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