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
a3e437ad
"docs/vscode:/vscode.git/clone" did not exist on "8e85ce8c93569017521d92ceb78dba2c57c955a0"
Commit
a3e437ad
authored
Dec 01, 2023
by
rocking
Browse files
Add groupnorm bwd x instance
parent
8e7805c5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_x/CMakeLists.txt
...operation_instance/gpu/normalization_bwd_x/CMakeLists.txt
+1
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_x/device_groupnorm_bwd_x_f32_instance.cpp
...rmalization_bwd_x/device_groupnorm_bwd_x_f32_instance.cpp
+23
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_x/normalization_bwd_x_instance_common.hpp
...rmalization_bwd_x/normalization_bwd_x_instance_common.hpp
+15
-0
No files found.
library/src/tensor_operation_instance/gpu/normalization_bwd_x/CMakeLists.txt
View file @
a3e437ad
set
(
DEVICE_NORMALIZATION_BWD_X_INSTANCES
)
set
(
DEVICE_NORMALIZATION_BWD_X_INSTANCES
)
list
(
APPEND DEVICE_NORMALIZATION_BWD_X_INSTANCES
list
(
APPEND DEVICE_NORMALIZATION_BWD_X_INSTANCES
device_groupnorm_bwd_x_f32_instance.cpp
device_layernorm2d_bwd_x_f16_instance.cpp
device_layernorm2d_bwd_x_f16_instance.cpp
device_layernorm2d_bwd_x_f32_instance.cpp
)
device_layernorm2d_bwd_x_f32_instance.cpp
)
...
...
library/src/tensor_operation_instance/gpu/normalization_bwd_x/device_groupnorm_bwd_x_f32_instance.cpp
0 → 100644
View file @
a3e437ad
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
#include "normalization_bwd_x_instance_common.hpp"
namespace
ck
{
namespace
tensor_operation
{
namespace
device
{
namespace
instance
{
void
add_device_groupnorm_bwd_x_f32_instances
(
std
::
vector
<
std
::
unique_ptr
<
DeviceNormalizationBwdX
<
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
>>>&
instances
)
{
add_device_operation_instances
(
instances
,
device_groupnorm_bwd_x_f32_generic_instance
{});
add_device_operation_instances
(
instances
,
device_groupnorm_bwd_x_f32_instances
{});
}
}
// namespace instance
}
// namespace device
}
// namespace tensor_operation
}
// namespace ck
library/src/tensor_operation_instance/gpu/normalization_bwd_x/normalization_bwd_x_instance_common.hpp
View file @
a3e437ad
...
@@ -52,6 +52,21 @@ using device_layernorm_bwd_x_f32_generic_instance = std::tuple<
...
@@ -52,6 +52,21 @@ using device_layernorm_bwd_x_f32_generic_instance = std::tuple<
// clang-format on
// clang-format on
>
;
>
;
using
device_groupnorm_bwd_x_f32_instances
=
// clang-format off
std
::
tuple
<
// DYDataType, XDataType, GammaDataType, MeanInvStdDataType, ComputeDataType, DXDataType, Rank, NumReduceDim, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, IsDYFastestDimReduced, DYSrcVectorSize, IsXFastestDimReduced, XSrcVectorSize, IsGammaFastestDimReduced, GammaSrcVectorSize, IsMeanInvStdFastestDimReduced, MeanInvStdSrcVectorSize, IsDXFastestDimReduced, DXDstVectorSize>
DeviceNormalizationBwdXImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
,
256
,
1
,
256
,
1
,
2
,
true
,
2
,
true
,
2
,
true
,
2
,
false
,
1
,
true
,
2
>
,
DeviceNormalizationBwdXImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
,
256
,
1
,
256
,
1
,
4
,
true
,
4
,
true
,
4
,
true
,
4
,
false
,
1
,
true
,
4
>
// clang-format on
>
;
using
device_groupnorm_bwd_x_f32_generic_instance
=
std
::
tuple
<
// clang-format off
DeviceNormalizationBwdXImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
,
64
,
1
,
64
,
1
,
1
,
true
,
1
,
true
,
1
,
true
,
1
,
false
,
1
,
true
,
1
>
// clang-format on
>
;
}
// namespace instance
}
// namespace instance
}
// namespace device
}
// namespace device
}
// namespace tensor_operation
}
// namespace tensor_operation
...
...
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