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
cabe8d80
Commit
cabe8d80
authored
Sep 28, 2022
by
wangshaojie6
Browse files
add 2 more test cases
parent
0e243105
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
example/42_groupnorm/groupnorm_sigmoid_fp16.cpp
example/42_groupnorm/groupnorm_sigmoid_fp16.cpp
+10
-10
test/layernorm/test_groupnorm_fp16.cpp
test/layernorm/test_groupnorm_fp16.cpp
+2
-0
No files found.
example/42_groupnorm/groupnorm_sigmoid_fp16.cpp
View file @
cabe8d80
...
@@ -56,17 +56,17 @@ using DeviceInstance =
...
@@ -56,17 +56,17 @@ using DeviceInstance =
Rank
,
Rank
,
NumReduceDim
,
NumReduceDim
,
1024
,
// BlockSize
1024
,
// BlockSize
1
,
// ClusterM
1
,
// ClusterM
1024
,
// ClusterK
1024
,
// ClusterK
1
,
// SliceM
1
,
// SliceM
32
,
// SliceK
32
,
// SliceK
1
,
// SrcVecDim (0=M, 1=K)
1
,
// SrcVecDim (0=M, 1=K)
2
,
// SrcScalarPerVector
2
,
// SrcScalarPerVector
1
,
// GammaVecDim (0=M, 1=K)
1
,
// GammaVecDim (0=M, 1=K)
2
,
// GammaScalarPerVector
2
,
// GammaScalarPerVector
1
,
// BetaVecDim (0=M, 1=K)
1
,
// BetaVecDim (0=M, 1=K)
2
,
// BetaScalarPerVector
2
,
// BetaScalarPerVector
2
>
;
// OutScalarPerVector
2
>
;
// OutScalarPerVector
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
...
...
test/layernorm/test_groupnorm_fp16.cpp
View file @
cabe8d80
...
@@ -26,6 +26,8 @@ class TestGroupnorm : public ::testing::Test
...
@@ -26,6 +26,8 @@ class TestGroupnorm : public ::testing::Test
{
256
,
9
,
9
,
9
,
9
},
{
256
,
9
,
9
,
9
,
9
},
{
1
,
64
,
64
,
32
,
10
},
{
1
,
64
,
64
,
32
,
10
},
{
1
,
32
,
32
,
32
,
20
},
{
1
,
32
,
32
,
32
,
20
},
{
2
,
32
,
32
,
32
,
30
},
{
2
,
32
,
32
,
32
,
40
},
{
1
,
16
,
16
,
32
,
40
}};
{
1
,
16
,
16
,
32
,
40
}};
for
(
auto
length
:
lengths
)
for
(
auto
length
:
lengths
)
...
...
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