"...composable_kernel_rocm.git" did not exist on "ef326c73d8479af7e5d654b546bceb9038a0de1b"
Commit f015e568 authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Remove base class of 'DevicePermute'

parent 6c4268f9
......@@ -26,7 +26,6 @@ template <typename InDataTypeTuple,
typename InScalarPerVectorSeq,
typename OutScalarPerVectorSeq>
struct DevicePermute
: public DeviceElementwiseBase<InDataTypeTuple, OutDataTypeTuple, ElementwiseOperation, NumDim>
{
static constexpr int NumInput = InDataTypeTuple::Size();
static constexpr int NumOutput = OutDataTypeTuple::Size();
......@@ -255,7 +254,7 @@ struct DevicePermute
return valid;
};
bool IsSupportedArgument(const BaseArgument* p_arg) override
bool IsSupportedArgument(const BaseArgument* p_arg)
{
return IsSupportedArgument(*dynamic_cast<const Argument*>(p_arg));
}
......@@ -282,7 +281,7 @@ struct DevicePermute
const std::array<std::array<index_t, NumDim>, NumOutput> outStridesArray,
const std::array<const void*, NumInput> in_dev_buffers,
const std::array<void*, NumOutput> out_dev_buffers,
ElementwiseOperation elementwise_op) override
ElementwiseOperation elementwise_op)
{
return std::make_unique<Argument>(lengths,
inStridesArray,
......@@ -293,10 +292,7 @@ struct DevicePermute
}
static auto MakeInvoker() { return Invoker{}; }
std::unique_ptr<BaseInvoker> MakeInvokerPointer() override
{
return std::make_unique<Invoker>();
};
std::unique_ptr<BaseInvoker> MakeInvokerPointer() { return std::make_unique<Invoker>(); };
}; // namespace device
} // namespace device
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment