Avoid the corner case where both lhs and rhs zero_point's are the lowest representable value in their respective quantized type.  E.g. when both LHS and RHS are uint8 with zero_point=0.  This is an unrealistic case since it means by definition that one is accumulating always positive values (no cancellation). Ruy s plain-NEON (non dotprod) path currently relies on the assumption that that's never the case (when padding packed matrices with the zero-point, if the zero-point is the lowest representable value, it generates the bad case for the "fast int8 kernel trick", -128*-128 + -128*-128 overflowing int16).
Avoid the corner case where both lhs and rhs zero_point's are the lowest representable value in their respective quantized type.  E.g. when both LHS and RHS are uint8 with zero_point=0.  This is an unrealistic case since it means by definition that one is accumulating always positive values (no cancellation). Ruy
s plain-NEON (non dotprod) path currently relies on the assumption that that's never the case (when padding packed matrices with the zero-point, if the zero-point is the lowest representable value, it generates the bad case for the "fast int8 kernel trick", -128*-128 + -128*-128 overflowing int16).

PiperOrigin-RevId: 245836064

aam-at/tensorflow,chemelnucfin/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,arborh/tensorflow,paolodedios/tensorflow,aldian/tensorflow,adit-chandra/tensorflow,xzturn/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,adit-chandra/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,petewarden/tensorflow,Intel-Corporation/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alsrgv/tensorflow,xzturn/tensorflow,annarev/tensorflow,arborh/tensorflow,renyi533/tensorflow,petewarden/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,chemelnucfin/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,alsrgv/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aldian/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,aldian/tensorflow,xzturn/tensorflow,aam-at/tensorflow,annarev/tensorflow,paolodedios/tensorflow,DavidNorman/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,ghchinoy/tensorflow,ghchinoy/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,davidzchen/tensorflow,ghchinoy/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,karllessard/tensorflow,renyi533/tensorflow,aam-at/tensorflow,cxxgtxy/tensorflow,chemelnucfin/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,DavidNorman/tensorflow,ghchinoy/tensorflow,yongtang/tensorflow,jhseu/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,ghchinoy/tensorflow,sarvex/tensorflow,cxxgtxy/tensorflow,ghchinoy/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alsrgv/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,yongtang/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,frreiss/tensorflow-fred,arborh/tensorflow,chemelnucfin/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,sarvex/tensorflow,ghchinoy/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,annarev/tensorflow,annarev/tensorflow,xzturn/tensorflow,karllessard/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,aldian/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,annarev/tensorflow,petewarden/tensorflow,ghchinoy/tensorflow,alsrgv/tensorflow,DavidNorman/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,cxxgtxy/tensorflow,annarev/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,alsrgv/tensorflow,paolodedios/tensorflow,adit-chandra/tensorflow,chemelnucfin/tensorflow,DavidNorman/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,Intel-Corporation/tensorflow,jhseu/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,ppwwyyxx/tensorflow,aldian/tensorflow,ppwwyyxx/tensorflow,alsrgv/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,sarvex/tensorflow,davidzchen/tensorflow,arborh/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,aldian/tensorflow,freedomtan/tensorflow,alsrgv/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,gunan/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,jhseu/tensorflow,xzturn/tensorflow,renyi533/tensorflow,alsrgv/tensorflow,renyi533/tensorflow,petewarden/tensorflow,gunan/tensorflow,DavidNorman/tensorflow,paolodedios/tensorflow,gunan/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,Intel-Corporation/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,aam-at/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,petewarden/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,jhseu/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,alsrgv/tensorflow,jhseu/tensorflow,ppwwyyxx/tensorflow,freedomtan/tensorflow,aldian/tensorflow,annarev/tensorflow,renyi533/tensorflow,jhseu/tensorflow,sarvex/tensorflow,adit-chandra/tensorflow,karllessard/tensorflow,karllessard/tensorflow,annarev/tensorflow,tensorflow/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,Intel-tensorflow/tensorflow,sarvex/tensorflow,jhseu/tensorflow,alsrgv/tensorflow,gunan/tensorflow,alsrgv/tensorflow,yongtang/tensorflow,renyi533/tensorflow,karllessard/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,chemelnucfin/tensorflow,ppwwyyxx/tensorflow,freedomtan/tensorflow,gunan/tensorflow,gautam1858/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,gautam1858/tensorflow,alsrgv/tensorflow,petewarden/tensorflow,sarvex/tensorflow,Intel-Corporation/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,freedomtan/tensorflow,renyi533/tensorflow,sarvex/tensorflow,chemelnucfin/tensorflow,adit-chandra/tensorflow,davidzchen/tensorflow,DavidNorman/tensorflow,ppwwyyxx/tensorflow,xzturn/tensorflow,aam-at/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,aam-at/tensorflow,arborh/tensorflow,gunan/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,karllessard/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,davidzchen/tensorflow,ghchinoy/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,frreiss/tensorflow-fred,gunan/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,DavidNorman/tensorflow