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
bc26a2fa
Commit
bc26a2fa
authored
Sep 06, 2022
by
Po-Yen, Chen
Browse files
Let 'DevicePermute' inherit from 'BaseOperator'
parent
f015e568
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/ck/tensor_operation/gpu/device/device_permute.hpp
include/ck/tensor_operation/gpu/device/device_permute.hpp
+2
-2
No files found.
include/ck/tensor_operation/gpu/device/device_permute.hpp
View file @
bc26a2fa
...
@@ -25,7 +25,7 @@ template <typename InDataTypeTuple,
...
@@ -25,7 +25,7 @@ template <typename InDataTypeTuple,
index_t
MPerThread
,
index_t
MPerThread
,
typename
InScalarPerVectorSeq
,
typename
InScalarPerVectorSeq
,
typename
OutScalarPerVectorSeq
>
typename
OutScalarPerVectorSeq
>
struct
DevicePermute
struct
DevicePermute
:
BaseOperator
{
{
static
constexpr
int
NumInput
=
InDataTypeTuple
::
Size
();
static
constexpr
int
NumInput
=
InDataTypeTuple
::
Size
();
static
constexpr
int
NumOutput
=
OutDataTypeTuple
::
Size
();
static
constexpr
int
NumOutput
=
OutDataTypeTuple
::
Size
();
...
@@ -254,7 +254,7 @@ struct DevicePermute
...
@@ -254,7 +254,7 @@ struct DevicePermute
return
valid
;
return
valid
;
};
};
bool
IsSupportedArgument
(
const
BaseArgument
*
p_arg
)
bool
IsSupportedArgument
(
const
BaseArgument
*
p_arg
)
override
{
{
return
IsSupportedArgument
(
*
dynamic_cast
<
const
Argument
*>
(
p_arg
));
return
IsSupportedArgument
(
*
dynamic_cast
<
const
Argument
*>
(
p_arg
));
}
}
...
...
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