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
Commits
a61aa740
Commit
a61aa740
authored
Mar 31, 2023
by
fsx950223
Browse files
simplified formula
parent
daebef99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+1
-1
No files found.
include/ck/utility/data_type.hpp
View file @
a61aa740
...
@@ -979,7 +979,7 @@ inline __host__ __device__ constexpr bhalf_t type_convert<bhalf_t, float>(float
...
@@ -979,7 +979,7 @@ inline __host__ __device__ constexpr bhalf_t type_convert<bhalf_t, float>(float
uint16x2_t
int32
;
uint16x2_t
int32
;
}
u
=
{
x
};
}
u
=
{
x
};
return
u
.
int32
.
y
+
(
(
u
.
int32
.
x
&
0x8000
)
>>
15
);
return
u
.
int32
.
y
+
(
u
.
int32
.
x
>>
15
);
}
}
// convert fp16 to bf16
// convert fp16 to bf16
...
...
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