Skip to content

Commit e925661

Browse files
authored
Update fused_dropout_act_bias.h
1 parent 0631c13 commit e925661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/phi/kernels/fusion/gpu/fused_dropout_act_bias.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ template <typename T>
3636
struct FastGeluFunctor {
3737
inline __device__ T operator()(const T x) const {
3838
#ifdef PADDLE_WITH_HIP
39-
PADDLE_ENFORCE(0, "FastGelu not surpport for rocm");
39+
PADDLE_THROW(phi::errors::Unimplemented("ROCM does not support FastGelu"));
4040
#else
4141
return phi::GeluFwd<T, true>(x);
4242
#endif

0 commit comments

Comments
 (0)