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
4eb307e9
Commit
4eb307e9
authored
May 16, 2023
by
rocking
Browse files
Add tensor stride
parent
9621381f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
example/13_pool2d_fwd/pool2d_fwd_common.hpp
example/13_pool2d_fwd/pool2d_fwd_common.hpp
+1
-0
example/48_pool3d_fwd/pool3d_fwd_common.hpp
example/48_pool3d_fwd/pool3d_fwd_common.hpp
+1
-0
include/ck/tensor_operation/gpu/device/device_pool_fwd.hpp
include/ck/tensor_operation/gpu/device/device_pool_fwd.hpp
+1
-0
No files found.
example/13_pool2d_fwd/pool2d_fwd_common.hpp
View file @
4eb307e9
...
...
@@ -117,6 +117,7 @@ bool pool_test(bool do_verification,
static_cast
<
OutDataType
*>
(
out_device_buf
.
GetDeviceBuffer
()),
static_cast
<
IndexDataType
*>
(
out_indices_device_buf
.
GetDeviceBuffer
()),
{
N
,
C
,
Hi
,
Wi
},
{
C
*
Hi
*
Wi
,
1
,
Wi
*
C
,
C
},
{
Y
,
X
},
{
N
,
C
,
Ho
,
Wo
},
window_strides
,
...
...
example/48_pool3d_fwd/pool3d_fwd_common.hpp
View file @
4eb307e9
...
...
@@ -125,6 +125,7 @@ bool pool3d_test(bool do_verification,
static_cast
<
OutDataType
*>
(
out_device_buf
.
GetDeviceBuffer
()),
static_cast
<
IndexDataType
*>
(
out_indices_device_buf
.
GetDeviceBuffer
()),
{
N
,
C
,
Di
,
Hi
,
Wi
},
{
Di
*
C
*
Hi
*
Wi
,
1
,
C
*
Hi
*
Wi
,
Wi
*
C
,
C
},
{
Z
,
Y
,
X
},
{
N
,
C
,
Do
,
Ho
,
Wo
},
window_strides
,
...
...
include/ck/tensor_operation/gpu/device/device_pool_fwd.hpp
View file @
4eb307e9
...
...
@@ -21,6 +21,7 @@ struct DevicePoolFwd : public BaseOperator
void
*
p_out_dev
,
void
*
p_out_indices_dev
,
std
::
array
<
ck
::
index_t
,
InOutRank
>
input_lengths
,
std
::
array
<
ck
::
index_t
,
InOutRank
>
input_stride
,
std
::
array
<
ck
::
index_t
,
WindowRank
>
window_lengths
,
std
::
array
<
ck
::
index_t
,
InOutRank
>
output_lengths
,
std
::
array
<
ck
::
index_t
,
WindowRank
>
window_strides
,
...
...
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