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
22e7a408
Commit
22e7a408
authored
Mar 08, 2023
by
ltqin
Browse files
fix F16
parent
f1ed4c5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/ck/tensor_operation/gpu/element/element_wise_operation.hpp
...k/tensor_operation/gpu/element/element_wise_operation.hpp
+1
-1
No files found.
include/ck/tensor_operation/gpu/element/element_wise_operation.hpp
View file @
22e7a408
...
...
@@ -423,7 +423,7 @@ struct ScaleBiasMask
template
<
>
__host__
__device__
constexpr
void
operator
()(
float
&
y
,
const
float
&
x
,
const
F16
&
bias
,
const
int32_t
&
mask
)
const
operator
()(
float
&
y
,
const
float
&
x
,
const
half_t
&
bias
,
const
int32_t
&
mask
)
const
{
float
filter_value
=
(
mask
==
1
?
0.0
f
:
mask_filter_value_
);
y
=
scale_
*
x
+
ck
::
type_convert
<
float
>
(
bias
)
+
filter_value
;
...
...
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