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
5be6a5f9
Commit
5be6a5f9
authored
Jun 12, 2019
by
Jing Zhang
Browse files
test
parent
bc0c18ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
driver/device_convolution_implicit_gemm_v4_nchw_kcyx_nkhw.hpp
...er/device_convolution_implicit_gemm_v4_nchw_kcyx_nkhw.hpp
+1
-2
driver/driver.hip.cpp
driver/driver.hip.cpp
+7
-7
No files found.
driver/device_convolution_implicit_gemm_v4_nchw_kcyx_nkhw.hpp
View file @
5be6a5f9
...
...
@@ -29,8 +29,7 @@ void device_convolution_implicit_gemm_v4_nchw_kc1x1_nkhw(InDesc,
constexpr
auto
I3
=
Number
<
3
>
{};
constexpr
auto
in_nchw_desc
=
InDesc
{};
static_assert
(
WeiDesc
{}.
GetLength
(
I2
)
==
1
,
"1x1 filter only"
);
static_assert
(
WeiDesc
{}.
GetLength
(
I3
)
==
1
,
"1x1 filter only"
);
static_assert
(
WeiDesc
{}.
GetLength
(
I2
)
==
1
&&
WeiDesc
{}.
GetLength
(
I3
)
==
1
,
"1x1 filter only"
);
constexpr
auto
wei_kc_desc
=
WeiDesc
{}.
Extract
(
Sequence
<
0
,
1
>
{});
constexpr
auto
out_nkhw_desc
=
OutDesc
{};
...
...
driver/driver.hip.cpp
View file @
5be6a5f9
...
...
@@ -493,13 +493,13 @@ void check_error(const Tensor<T>& ref, const Tensor<T>& result)
int
main
(
int
argc
,
char
*
argv
[])
{
constexpr
index_t
HStride
=
2
;
constexpr
index_t
WStride
=
2
;
constexpr
index_t
HStride
=
1
;
constexpr
index_t
WStride
=
1
;
constexpr
index_t
HDilation
=
1
;
constexpr
index_t
WDilation
=
1
;
constexpr
index_t
Direction
=
0
;
// 1: Forward; 0:Backward
constexpr
index_t
Direction
=
2
;
// 1: Forward; 0:Backward
#if 0
constexpr index_t N = 32;
constexpr index_t C = 128;
...
...
@@ -550,10 +550,10 @@ int main(int argc, char* argv[])
#elif 1
// 1x1 filter, 28x28 image
constexpr
index_t
N
=
128
;
constexpr
index_t
C
=
128
;
constexpr
index_t
HI
=
7
;
constexpr
index_t
WI
=
7
;
constexpr
index_t
K
=
128
;
constexpr
index_t
C
=
256
;
constexpr
index_t
HI
=
56
;
constexpr
index_t
WI
=
56
;
constexpr
index_t
K
=
256
;
constexpr
index_t
Y
=
1
;
constexpr
index_t
X
=
1
;
...
...
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