Commit fb54b55b authored by Mateusz Ozga's avatar Mateusz Ozga
Browse files

Removed declytype

parent 03eb017d
...@@ -241,7 +241,7 @@ struct DeviceGroupedConvBwdWeight_Xdl_CShuffle ...@@ -241,7 +241,7 @@ struct DeviceGroupedConvBwdWeight_Xdl_CShuffle
ConvBackwardWeightSpecialization>{}; ConvBackwardWeightSpecialization>{};
template <ck::index_t NDim, typename ck::enable_if<NDim == 1, bool>::type = false> template <ck::index_t NDim, typename ck::enable_if<NDim == 1, bool>::type = false>
static auto GetABCGridDesc() -> decltype(auto) static auto GetABCGridDesc()
{ {
const ck::index_t dim = 1; const ck::index_t dim = 1;
const ck::index_t batch = 1; const ck::index_t batch = 1;
...@@ -266,7 +266,7 @@ struct DeviceGroupedConvBwdWeight_Xdl_CShuffle ...@@ -266,7 +266,7 @@ struct DeviceGroupedConvBwdWeight_Xdl_CShuffle
} }
template <ck::index_t NDim, typename ck::enable_if<NDim == 2, bool>::type = false> template <ck::index_t NDim, typename ck::enable_if<NDim == 2, bool>::type = false>
static auto GetABCGridDesc() -> decltype(auto) static auto GetABCGridDesc()
{ {
const ck::index_t dim = 1; const ck::index_t dim = 1;
const ck::index_t batch = 1; const ck::index_t batch = 1;
...@@ -291,7 +291,7 @@ struct DeviceGroupedConvBwdWeight_Xdl_CShuffle ...@@ -291,7 +291,7 @@ struct DeviceGroupedConvBwdWeight_Xdl_CShuffle
} }
template <ck::index_t NDim, typename ck::enable_if<NDim == 3, bool>::type = false> template <ck::index_t NDim, typename ck::enable_if<NDim == 3, bool>::type = false>
static auto GetABCGridDesc() -> decltype(auto) static auto GetABCGridDesc()
{ {
const ck::index_t dim = 1; const ck::index_t dim = 1;
const ck::index_t batch = 1; const ck::index_t batch = 1;
...@@ -318,7 +318,6 @@ struct DeviceGroupedConvBwdWeight_Xdl_CShuffle ...@@ -318,7 +318,6 @@ struct DeviceGroupedConvBwdWeight_Xdl_CShuffle
template <typename SeqType> template <typename SeqType>
[[nodiscard, gnu::always_inline]] inline constexpr static auto [[nodiscard, gnu::always_inline]] inline constexpr static auto
ShuffleSequenceAndTransformFrom4DTo3D() noexcept(noexcept(SeqType{}.Size() == 4)) ShuffleSequenceAndTransformFrom4DTo3D() noexcept(noexcept(SeqType{}.Size() == 4))
-> decltype(auto)
{ {
// Remove first element and, // Remove first element and,
// Convert 4d->3d sequence. // Convert 4d->3d sequence.
...@@ -332,7 +331,6 @@ struct DeviceGroupedConvBwdWeight_Xdl_CShuffle ...@@ -332,7 +331,6 @@ struct DeviceGroupedConvBwdWeight_Xdl_CShuffle
template <typename SeqType> template <typename SeqType>
[[nodiscard, gnu::always_inline]] inline constexpr static auto [[nodiscard, gnu::always_inline]] inline constexpr static auto
TransformSequenceFrom4DTo3dAndReduceByOne() noexcept(noexcept(SeqType{}.Size() == 4)) TransformSequenceFrom4DTo3dAndReduceByOne() noexcept(noexcept(SeqType{}.Size() == 4))
-> decltype(auto)
{ {
// Skip first element and // Skip first element and
// Convert 4d->3d and take away one from seq. // Convert 4d->3d and take away one from seq.
......
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