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
3017cf72
Commit
3017cf72
authored
Apr 14, 2023
by
rocking
Browse files
Fix clang format
parent
83f9da8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
33 deletions
+33
-33
client_example/09_quantization/conv2d_fwd_bias_tanh_perlayer_quantization.cpp
...antization/conv2d_fwd_bias_tanh_perlayer_quantization.cpp
+9
-9
library/src/tensor_operation_instance/gpu/grouped_conv2d_fwd/device_grouped_conv2d_fwd_xdl_nhwgc_gkyxc_nhwgk_bf16_instance.cpp
...rouped_conv2d_fwd_xdl_nhwgc_gkyxc_nhwgk_bf16_instance.cpp
+24
-24
No files found.
client_example/09_quantization/conv2d_fwd_bias_tanh_perlayer_quantization.cpp
View file @
3017cf72
...
@@ -26,15 +26,15 @@ using OutElementOp = ck::tensor_operation::element_wise::Add_Mul_Activation_Mul_
...
@@ -26,15 +26,15 @@ using OutElementOp = ck::tensor_operation::element_wise::Add_Mul_Activation_Mul_
static
constexpr
ck
::
index_t
NumDimSpatial
=
2
;
static
constexpr
ck
::
index_t
NumDimSpatial
=
2
;
static
constexpr
ck
::
index_t
G
=
4
;
static
constexpr
ck
::
index_t
G
=
4
;
static
constexpr
ck
::
index_t
N
=
4
;
// batch size
static
constexpr
ck
::
index_t
N
=
4
;
// batch size
static
constexpr
ck
::
index_t
K
=
32
;
// output channel
static
constexpr
ck
::
index_t
K
=
32
;
// output channel
static
constexpr
ck
::
index_t
C
=
64
;
// input channel
static
constexpr
ck
::
index_t
C
=
64
;
// input channel
static
constexpr
ck
::
index_t
Y
=
3
;
// filter H
static
constexpr
ck
::
index_t
Y
=
3
;
// filter H
static
constexpr
ck
::
index_t
X
=
3
;
// filter W
static
constexpr
ck
::
index_t
X
=
3
;
// filter W
static
constexpr
ck
::
index_t
Hi
=
71
;
// input H
static
constexpr
ck
::
index_t
Hi
=
71
;
// input H
static
constexpr
ck
::
index_t
Wi
=
71
;
// input W
static
constexpr
ck
::
index_t
Wi
=
71
;
// input W
static
constexpr
ck
::
index_t
Ho
=
36
;
// output H
static
constexpr
ck
::
index_t
Ho
=
36
;
// output H
static
constexpr
ck
::
index_t
Wo
=
36
;
// output W
static
constexpr
ck
::
index_t
Wo
=
36
;
// output W
static
constexpr
float
sacc
=
0.5
f
;
// scale of acc
static
constexpr
float
sacc
=
0.5
f
;
// scale of acc
static
constexpr
float
sz_inv
=
0.5
f
;
// inverse of scale_z
static
constexpr
float
sz_inv
=
0.5
f
;
// inverse of scale_z
...
...
library/src/tensor_operation_instance/gpu/grouped_conv2d_fwd/device_grouped_conv2d_fwd_xdl_nhwgc_gkyxc_nhwgk_bf16_instance.cpp
View file @
3017cf72
...
@@ -25,39 +25,39 @@ void add_device_grouped_conv2d_fwd_xdl_nhwgc_gkyxc_nhwgk_bf16_instances(
...
@@ -25,39 +25,39 @@ void add_device_grouped_conv2d_fwd_xdl_nhwgc_gkyxc_nhwgk_bf16_instances(
{
{
add_device_operation_instances
(
instances
,
add_device_operation_instances
(
instances
,
device_grouped_conv2d_fwd_xdl_bf16_instances
<
NHWGC
,
device_grouped_conv2d_fwd_xdl_bf16_instances
<
NHWGC
,
GKYXC
,
GKYXC
,
Empty_Tuple
,
Empty_Tuple
,
NHWGK
,
NHWGK
,
Empty_Tuple
,
Empty_Tuple
,
PassThrough
,
PassThrough
,
ConvFwdDefault
>
{});
ConvFwdDefault
>
{});
add_device_operation_instances
(
instances
,
add_device_operation_instances
(
instances
,
device_grouped_conv2d_fwd_xdl_bf16_instances
<
NHWGC
,
device_grouped_conv2d_fwd_xdl_bf16_instances
<
NHWGC
,
GKYXC
,
GKYXC
,
Empty_Tuple
,
Empty_Tuple
,
NHWGK
,
NHWGK
,
Empty_Tuple
,
Empty_Tuple
,
PassThrough
,
PassThrough
,
ConvFwd1x1P0
>
{});
ConvFwd1x1P0
>
{});
add_device_operation_instances
(
instances
,
add_device_operation_instances
(
instances
,
device_grouped_conv2d_fwd_xdl_bf16_instances
<
NHWGC
,
device_grouped_conv2d_fwd_xdl_bf16_instances
<
NHWGC
,
GKYXC
,
GKYXC
,
Empty_Tuple
,
Empty_Tuple
,
NHWGK
,
NHWGK
,
Empty_Tuple
,
Empty_Tuple
,
PassThrough
,
PassThrough
,
ConvFwd1x1S1P0
>
{});
ConvFwd1x1S1P0
>
{});
add_device_operation_instances
(
instances
,
add_device_operation_instances
(
instances
,
device_grouped_conv2d_fwd_xdl_bf16_instances
<
NHWGC
,
device_grouped_conv2d_fwd_xdl_bf16_instances
<
NHWGC
,
GKYXC
,
GKYXC
,
Empty_Tuple
,
Empty_Tuple
,
NHWGK
,
NHWGK
,
Empty_Tuple
,
Empty_Tuple
,
PassThrough
,
PassThrough
,
ConvFwdOddC
>
{});
ConvFwdOddC
>
{});
}
}
}
// namespace instance
}
// namespace instance
...
...
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