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
06e287e8
Commit
06e287e8
authored
Oct 11, 2024
by
letaoqin
Browse files
fix precision
parent
1e447622
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/ck/tensor_operation/gpu/element/binary_element_wise_operation.hpp
...r_operation/gpu/element/binary_element_wise_operation.hpp
+2
-2
No files found.
include/ck/tensor_operation/gpu/element/binary_element_wise_operation.hpp
View file @
06e287e8
...
@@ -47,14 +47,14 @@ struct Add
...
@@ -47,14 +47,14 @@ struct Add
__host__
__device__
constexpr
void
__host__
__device__
constexpr
void
operator
()
<
half_t
>
(
half_t
&
y
,
const
float
&
x0
,
const
half_t
&
x1
)
const
operator
()
<
half_t
>
(
half_t
&
y
,
const
float
&
x0
,
const
half_t
&
x1
)
const
{
{
y
=
type_convert
<
half_t
>
(
x0
)
+
x
1
;
y
=
type_convert
<
half_t
>
(
type_convert
<
float
>
(
x1
)
+
x
0
)
;
};
};
template
<
>
template
<
>
__host__
__device__
constexpr
void
__host__
__device__
constexpr
void
operator
()
<
half_t
>
(
half_t
&
y
,
const
half_t
&
x0
,
const
half_t
&
x1
)
const
operator
()
<
half_t
>
(
half_t
&
y
,
const
half_t
&
x0
,
const
half_t
&
x1
)
const
{
{
y
=
x0
+
x1
;
y
=
type_convert
<
float
>
(
x0
)
+
type_convert
<
float
>
(
x1
)
;
};
};
template
<
>
template
<
>
...
...
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