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
417ddbda
Commit
417ddbda
authored
Jun 18, 2023
by
Bartlomiej Kocot
Committed by
Bartłomiej Kocot
Jun 18, 2023
Browse files
clang format
parent
d1692cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
test/grouped_convnd_bwd_data/test_grouped_convnd_bwd_data_interface.cpp
...onvnd_bwd_data/test_grouped_convnd_bwd_data_interface.cpp
+15
-16
No files found.
test/grouped_convnd_bwd_data/test_grouped_convnd_bwd_data_interface.cpp
View file @
417ddbda
...
...
@@ -25,12 +25,11 @@ using Pass = ck::tensor_operation::element_wise::PassThrough;
template
<
ck
::
index_t
...
Is
>
using
S
=
ck
::
Sequence
<
Is
...
>
;
using
ConvBackwardDataSpecialization
=
ck
::
tensor_operation
::
device
::
ConvolutionBackwardDataSpecialization
;
using
ConvBackwardDataSpecialization
=
ck
::
tensor_operation
::
device
::
ConvolutionBackwardDataSpecialization
;
static
constexpr
auto
ConvBwdDataDefault
=
ConvBackwardDataSpecialization
::
Default
;
static
constexpr
auto
Filter1x1Stride1Pad0
=
ConvBackwardDataSpecialization
::
Filter1x1Stride1Pad0
;
static
constexpr
auto
ConvBwdDataDefault
=
ConvBackwardDataSpecialization
::
Default
;
static
constexpr
auto
Filter1x1Stride1Pad0
=
ConvBackwardDataSpecialization
::
Filter1x1Stride1Pad0
;
template
<
typename
Tuple
,
ConvBackwardDataSpecialization
ConvSpec
>
class
TestGroupedConvndBwdData
:
public
::
testing
::
Test
...
...
@@ -126,7 +125,6 @@ using GKYXC = ck::tensor_layout::convolution::GKYXC;
using
GNHWK
=
ck
::
tensor_layout
::
convolution
::
GNHWK
;
using
NHWGK
=
ck
::
tensor_layout
::
convolution
::
NHWGK
;
using
KernelTypes
=
::
testing
::
Types
<
std
::
tuple
<
GNHWK
,
GKYXC
,
GNHWC
>
,
std
::
tuple
<
NHWGK
,
GKYXC
,
NHWGC
>>
;
...
...
@@ -136,7 +134,8 @@ class TestGroupedConvndBwdDataDefault : public TestGroupedConvndBwdData<Tuple, C
};
template
<
typename
Tuple
>
class
TestGroupedConvndBwdDataFilter1x1
:
public
TestGroupedConvndBwdData
<
Tuple
,
Filter1x1Stride1Pad0
>
class
TestGroupedConvndBwdDataFilter1x1
:
public
TestGroupedConvndBwdData
<
Tuple
,
Filter1x1Stride1Pad0
>
{
};
...
...
@@ -156,20 +155,20 @@ TYPED_TEST(TestGroupedConvndBwdDataFilter1x1, SpecializationCheck)
this
->
conv_param
=
{
2
,
2
,
4
,
192
,
192
,
{
3
,
3
},
{
28
,
28
},
{
1
,
1
},
{
1
,
1
},
{
0
,
0
},
{
0
,
0
}};
bool
is_supported
=
this
->
template
Run
<
2
>();
EXPECT_FALSE
(
is_supported
);
// Check strides 2,2 instead of 1,1
this
->
conv_param
=
{
2
,
2
,
4
,
192
,
192
,
{
1
,
1
},
{
28
,
28
},
{
2
,
2
},
{
1
,
1
},
{
0
,
0
},
{
0
,
0
}};
is_supported
=
this
->
template
Run
<
2
>();
this
->
conv_param
=
{
2
,
2
,
4
,
192
,
192
,
{
1
,
1
},
{
28
,
28
},
{
2
,
2
},
{
1
,
1
},
{
0
,
0
},
{
0
,
0
}};
is_supported
=
this
->
template
Run
<
2
>();
EXPECT_FALSE
(
is_supported
);
// Check with pad
this
->
conv_param
=
{
2
,
2
,
4
,
192
,
192
,
{
1
,
1
},
{
28
,
28
},
{
1
,
1
},
{
1
,
1
},
{
1
,
1
},
{
1
,
1
}};
is_supported
=
this
->
template
Run
<
2
>();
this
->
conv_param
=
{
2
,
2
,
4
,
192
,
192
,
{
1
,
1
},
{
28
,
28
},
{
1
,
1
},
{
1
,
1
},
{
1
,
1
},
{
1
,
1
}};
is_supported
=
this
->
template
Run
<
2
>();
EXPECT_FALSE
(
is_supported
);
// Supported version
this
->
conv_param
=
{
2
,
2
,
4
,
192
,
192
,
{
1
,
1
},
{
28
,
28
},
{
1
,
1
},
{
1
,
1
},
{
0
,
0
},
{
0
,
0
}};
is_supported
=
this
->
template
Run
<
2
>();
this
->
conv_param
=
{
2
,
2
,
4
,
192
,
192
,
{
1
,
1
},
{
28
,
28
},
{
1
,
1
},
{
1
,
1
},
{
0
,
0
},
{
0
,
0
}};
is_supported
=
this
->
template
Run
<
2
>();
EXPECT_TRUE
(
is_supported
);
}
...
...
@@ -180,7 +179,7 @@ TYPED_TEST(TestGroupedConvndBwdDataDefault, VectorLoadCheck)
bool
is_supported
=
this
->
template
Run
<
2
>();
EXPECT_FALSE
(
is_supported
);
// vector load for B, E, Ds
this
->
conv_param
=
{
2
,
2
,
128
,
128
,
257
,
{
1
,
1
},
{
7
,
7
},
{
2
,
2
},
{
1
,
1
},
{
0
,
0
},
{
0
,
0
}};
is_supported
=
this
->
template
Run
<
2
>();
this
->
conv_param
=
{
2
,
2
,
128
,
128
,
257
,
{
1
,
1
},
{
7
,
7
},
{
2
,
2
},
{
1
,
1
},
{
0
,
0
},
{
0
,
0
}};
is_supported
=
this
->
template
Run
<
2
>();
EXPECT_FALSE
(
is_supported
);
}
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