Skip to content

Commit

Permalink
fix compile bugs in windows ci
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanRisheng committed Nov 22, 2021
1 parent 3cad692 commit 79e53b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions paddle/pten/kernels/functions/general/elementwise_functor.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,20 @@ struct SameDimsDivFunctor {
DenseTensor* z);
};

template <typename DevCtx, typename T>
struct SameDimsDivFunctor<
DevCtx,
T,
typename std::enable_if<!std::is_floating_point<T>::value>::type> {
void operator()(const DevCtx& dev_ctx,
const DenseTensor& x,
const DenseTensor& y,
DenseTensor* z) {
paddle::platform::errors::InvalidArgument(
"If use SameDimsDivFunctor, template args(T) must be floating point. ");
}
};

template <typename DevCtx, typename T>
struct SameDimsDivFunctor<
DevCtx,
Expand Down

0 comments on commit 79e53b4

Please sign in to comment.