@@ -703,8 +703,8 @@ struct RemainderFunctor {
703703 PADDLE_ENFORCE (b != 0 , DIV_ERROR_INFO);
704704 T res = a % b;
705705
706-  //  According to #PR26732: in dividen  % divsor 
707-  //  remainder shall have the same sign as divsor .
706+  //  According to #PR26732: in dividend  % divisor 
707+  //  remainder shall have the same sign as divisor .
708708 if  ((res != 0 ) && ((b ^ res) < 0 )) res += b;
709709 return  res;
710710 }
@@ -717,8 +717,8 @@ struct RemainderFunctor<
717717 inline  HOSTDEVICE T operator ()(const  T a, const  T b) const  {
718718 T res = fmod (a, b);
719719
720-  //  According to #PR26732: in dividen  % divsor 
721-  //  remainder shall have the same sign as divsor .
720+  //  According to #PR26732: in dividend  % divisor 
721+  //  remainder shall have the same sign as divisor .
722722 if  ((res != 0 ) && ((res < 0 ) != (b < 0 ))) res += b;
723723 return  res;
724724 }
@@ -730,8 +730,8 @@ struct RemainderFunctor<dtype::float16> {
730730 const  dtype::float16 b) const  {
731731 float  b_float = static_cast <float >(b);
732732 float  res = fmod (static_cast <float >(a), b_float);
733-  //  According to #PR26732: in dividen  % divsor 
734-  //  remainder shall have the same sign as divsor .
733+  //  According to #PR26732: in dividend  % divisor 
734+  //  remainder shall have the same sign as divisor .
735735 if  ((res != 0 .0f ) && ((res < 0 .0f ) != (b_float < 0 .0f ))) res += b_float;
736736 return  static_cast <dtype::float16>(res);
737737 }
@@ -744,8 +744,8 @@ struct RemainderFunctor<dtype::bfloat16> {
744744 float  b_float = static_cast <float >(b);
745745 float  res = fmod (static_cast <float >(a), b_float);
746746
747-  //  According to #PR26732: in dividen  % divsor 
748-  //  remainder shall have the same sign as divsor .
747+  //  According to #PR26732: in dividend  % divisor 
748+  //  remainder shall have the same sign as divisor .
749749 if  ((res != 0 .0f ) && ((res < 0 .0f ) != (b_float < 0 .0f ))) res += b_float;
750750 return  static_cast <dtype::bfloat16>(res);
751751 }
0 commit comments