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
8fecf4c3
Commit
8fecf4c3
authored
Jan 17, 2022
by
Chao Liu
Browse files
tweak
parent
6ff00ed4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
example/3_gemm_xdl_bias_relu_add/gemm_xdl_bias_relu_add.cpp
example/3_gemm_xdl_bias_relu_add/gemm_xdl_bias_relu_add.cpp
+2
-2
No files found.
example/3_gemm_xdl_bias_relu_add/gemm_xdl_bias_relu_add.cpp
View file @
8fecf4c3
...
@@ -35,9 +35,9 @@ struct BiasReluAdd
...
@@ -35,9 +35,9 @@ struct BiasReluAdd
template
<
typename
T1
,
typename
T2
>
template
<
typename
T1
,
typename
T2
>
__device__
constexpr
float
operator
()(
float
v0
,
T1
v1
,
T2
v2
)
const
__device__
constexpr
float
operator
()(
float
v0
,
T1
v1
,
T2
v2
)
const
{
{
#if
0
#if
1
float
a
=
v1
+
v0
;
float
a
=
v1
+
v0
;
float b =
max(a, float(0))
;
float
b
=
a
>
0
?
a
:
0
;
float
c
=
b
+
v2
;
float
c
=
b
+
v2
;
return
c
;
return
c
;
...
...
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