Skip to content

Commit

Permalink
Update fused_dropout_act_bias.h
Browse files Browse the repository at this point in the history
  • Loading branch information
yuguo-Jack authored Apr 7, 2024
1 parent 0631c13 commit e925661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/phi/kernels/fusion/gpu/fused_dropout_act_bias.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ template <typename T>
struct FastGeluFunctor {
inline __device__ T operator()(const T x) const {
#ifdef PADDLE_WITH_HIP
PADDLE_ENFORCE(0, "FastGelu not surpport for rocm");
PADDLE_THROW(phi::errors::Unimplemented("ROCM does not support FastGelu"));
#else
return phi::GeluFwd<T, true>(x);
#endif
Expand Down

0 comments on commit e925661

Please sign in to comment.