Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
fix c++17-extensions warning on macos

fix c++17-extensions warning on macos
  • Loading branch information
AndPuQing committed Dec 13, 2022
1 parent 02a125b commit 93851f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions paddle/phi/kernels/cpu/viterbi_decode_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ struct Gather {
};

template <typename Context,
template <class InT, class OutT>
typename CompareFunctor,
template <typename InT, typename OutT>
class CompareFunctor,
typename T>
struct GetMask {
void operator()(const Context& dev_ctx,
Expand All @@ -123,8 +123,8 @@ struct GetMask {
};

template <typename Context,
template <class T>
typename BinaryFunctor,
template <typename T>
class BinaryFunctor,
typename T>
struct BinaryOperation {
void operator()(const Context& dev_ctx,
Expand Down
4 changes: 2 additions & 2 deletions paddle/phi/kernels/strings/strings_lower_upper_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ struct AsciiCaseConverter {
};

template <typename DeviceContext,
template <class DeviceContextT>
typename CharConverter>
template <typename DeviceContextT>
class CharConverter>
struct UTF8CaseConverter {
void operator()(const DeviceContext& dev_ctx,
const pstring* in,
Expand Down

0 comments on commit 93851f6

Please sign in to comment.