Skip to content

Commit

Permalink
try to fix namespace error of abs in activation_functor.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahy0825 committed Jul 27, 2022
1 parent 2043b06 commit 2ad7a0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paddle/phi/common/float16.h
Original file line number Diff line number Diff line change
Expand Up @@ -1083,8 +1083,8 @@ struct numeric_limits<phi::dtype::float16> {
}
};

HOSTDEVICE inline phi::dtype::float16 abs(const phi::dtype::float16& a) {
return phi::dtype::abs(a);
}
// HOSTDEVICE inline phi::dtype::float16 abs(const phi::dtype::float16& a) {
// return phi::dtype::abs(a);
// }

} // namespace std

0 comments on commit 2ad7a0e

Please sign in to comment.