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
f174fb09
Commit
f174fb09
authored
Feb 10, 2023
by
rocking
Browse files
Fix typo
parent
510dfb60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
example/27_layernorm/layernorm_blockwise.cpp
example/27_layernorm/layernorm_blockwise.cpp
+3
-3
example/42_groupnorm/groupnorm_sigmoid_fp16.cpp
example/42_groupnorm/groupnorm_sigmoid_fp16.cpp
+3
-3
include/ck/tensor_operation/gpu/device/device_normalization.hpp
...e/ck/tensor_operation/gpu/device/device_normalization.hpp
+3
-3
No files found.
example/27_layernorm/layernorm_blockwise.cpp
View file @
f174fb09
...
...
@@ -24,7 +24,7 @@ using XDataType = ck::half_t;
using
GammaDataType
=
ck
::
half_t
;
using
BetaDataType
=
ck
::
half_t
;
using
YDataType
=
ck
::
half_t
;
using
Co
n
puteDataType
=
float
;
using
Co
m
puteDataType
=
float
;
using
PassThrough
=
ck
::
tensor_operation
::
element_wise
::
PassThrough
;
constexpr
int
Rank
=
2
;
...
...
@@ -34,7 +34,7 @@ using DeviceInstance =
ck
::
tensor_operation
::
device
::
DeviceNormalizationImpl
<
XDataType
,
GammaDataType
,
BetaDataType
,
Co
n
puteDataType
,
Co
m
puteDataType
,
YDataType
,
PassThrough
,
Rank
,
...
...
@@ -121,7 +121,7 @@ int main()
GammaDataType
,
BetaDataType
,
YDataType
,
Co
n
puteDataType
,
Co
m
puteDataType
,
PassThrough
,
Rank
,
NumReduceDim
>
;
...
...
example/42_groupnorm/groupnorm_sigmoid_fp16.cpp
View file @
f174fb09
...
...
@@ -27,7 +27,7 @@ using XDataType = ck::half_t;
using
GammaDataType
=
ck
::
half_t
;
using
BetaDataType
=
ck
::
half_t
;
using
YDataType
=
ck
::
half_t
;
using
Co
n
puteDataType
=
float
;
using
Co
m
puteDataType
=
float
;
struct
YElementOp
{
...
...
@@ -50,7 +50,7 @@ using DeviceInstance =
ck
::
tensor_operation
::
device
::
DeviceNormalizationImpl
<
XDataType
,
GammaDataType
,
BetaDataType
,
Co
n
puteDataType
,
Co
m
puteDataType
,
YDataType
,
YElementOp
,
Rank
,
...
...
@@ -157,7 +157,7 @@ int main(int argc, char* argv[])
GammaDataType
,
BetaDataType
,
YDataType
,
Co
n
puteDataType
,
Co
m
puteDataType
,
YElementOp
>
;
ReferenceInstance
ref
;
...
...
include/ck/tensor_operation/gpu/device/device_normalization.hpp
View file @
f174fb09
...
...
@@ -14,7 +14,7 @@ namespace device {
template
<
typename
XDataType
,
typename
GammaDataType
,
typename
BetaDataType
,
typename
Co
n
puteDataType
,
typename
Co
m
puteDataType
,
typename
YDataType
,
typename
YElementwiseOperation
,
index_t
Rank
,
...
...
@@ -43,7 +43,7 @@ struct DeviceNormalization : public BaseOperator
template
<
typename
XDataType
,
typename
GammaDataType
,
typename
BetaDataType
,
typename
Co
n
puteDataType
,
typename
Co
m
puteDataType
,
typename
YDataType
,
typename
YElementwiseOperation
,
index_t
Rank
,
...
...
@@ -51,7 +51,7 @@ template <typename XDataType,
using
DeviceNormalizationPtr
=
std
::
unique_ptr
<
DeviceNormalization
<
XDataType
,
GammaDataType
,
BetaDataType
,
Co
n
puteDataType
,
Co
m
puteDataType
,
YDataType
,
YElementwiseOperation
,
Rank
,
...
...
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