Avoid overflow in flops calculations in nn_ops.py by forcing np.prod() to use np.int64 in a few places.
Avoid overflow in flops calculations in nn_ops.py by forcing
np.prod() to use np.int64 in a few places.

PiperOrigin-RevId: 202505308

xzturn/tensorflow,jbedorf/tensorflow,jendap/tensorflow,freedomtan/tensorflow,ppwwyyxx/tensorflow,annarev/tensorflow,jalexvig/tensorflow,ZhangXinNan/tensorflow,adit-chandra/tensorflow,dancingdan/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,jendap/tensorflow,seanli9jan/tensorflow,ageron/tensorflow,davidzchen/tensorflow,ZhangXinNan/tensorflow,kobejean/tensorflow,karllessard/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_saved_model,drpngx/tensorflow,paolodedios/tensorflow,DavidNorman/tensorflow,ageron/tensorflow,snnn/tensorflow,alsrgv/tensorflow,Intel-Corporation/tensorflow,alsrgv/tensorflow,kobejean/tensorflow,AnishShah/tensorflow,kevin-coder/tensorflow-fork,apark263/tensorflow,dancingdan/tensorflow,kobejean/tensorflow,jbedorf/tensorflow,ageron/tensorflow,dancingdan/tensorflow,adit-chandra/tensorflow,dongjoon-hyun/tensorflow,ghchinoy/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,hehongliang/tensorflow,frreiss/tensorflow-fred,seanli9jan/tensorflow,theflofly/tensorflow,gunan/tensorflow,seanli9jan/tensorflow,adit-chandra/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,asimshankar/tensorflow,ppwwyyxx/tensorflow,hehongliang/tensorflow,aam-at/tensorflow,snnn/tensorflow,Intel-tensorflow/tensorflow,AnishShah/tensorflow,cxxgtxy/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,kobejean/tensorflow,meteorcloudy/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,chemelnucfin/tensorflow,arborh/tensorflow,kevin-coder/tensorflow-fork,jendap/tensorflow,ghchinoy/tensorflow,manipopopo/tensorflow,brchiu/tensorflow,dancingdan/tensorflow,apark263/tensorflow,AnishShah/tensorflow,seanli9jan/tensorflow,arborh/tensorflow,renyi533/tensorflow,jhseu/tensorflow,tensorflow/tensorflow,brchiu/tensorflow,renyi533/tensorflow,asimshankar/tensorflow,theflofly/tensorflow,freedomtan/tensorflow,caisq/tensorflow,alsrgv/tensorflow,frreiss/tensorflow-fred,jendap/tensorflow,ZhangXinNan/tensorflow,Intel-tensorflow/tensorflow,hfp/tensorflow-xsmm,Bismarrck/tensorflow,paolodedios/tensorflow,brchiu/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,theflofly/tensorflow,aam-at/tensorflow,chemelnucfin/tensorflow,seanli9jan/tensorflow,jart/tensorflow,dancingdan/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,dancingdan/tensorflow,freedomtan/tensorflow,snnn/tensorflow,manipopopo/tensorflow,asimshankar/tensorflow,cxxgtxy/tensorflow,theflofly/tensorflow,caisq/tensorflow,jbedorf/tensorflow,jalexvig/tensorflow,xzturn/tensorflow,karllessard/tensorflow,aselle/tensorflow,xodus7/tensorflow,xodus7/tensorflow,hehongliang/tensorflow,snnn/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,adit-chandra/tensorflow,jendap/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,Bismarrck/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,meteorcloudy/tensorflow,yongtang/tensorflow,girving/tensorflow,tensorflow/tensorflow,xodus7/tensorflow,apark263/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alshedivat/tensorflow,DavidNorman/tensorflow,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,theflofly/tensorflow,theflofly/tensorflow,theflofly/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow,jbedorf/tensorflow,aam-at/tensorflow,AnishShah/tensorflow,hfp/tensorflow-xsmm,xzturn/tensorflow,alshedivat/tensorflow,dongjoon-hyun/tensorflow,dancingdan/tensorflow,xzturn/tensorflow,chemelnucfin/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,karllessard/tensorflow,petewarden/tensorflow,xzturn/tensorflow,AnishShah/tensorflow,AnishShah/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,caisq/tensorflow,xzturn/tensorflow,jalexvig/tensorflow,gunan/tensorflow,AnishShah/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,Intel-tensorflow/tensorflow,dongjoon-hyun/tensorflow,annarev/tensorflow,asimshankar/tensorflow,adit-chandra/tensorflow,jart/tensorflow,manipopopo/tensorflow,aam-at/tensorflow,arborh/tensorflow,xodus7/tensorflow,jhseu/tensorflow,brchiu/tensorflow,gunan/tensorflow,adit-chandra/tensorflow,annarev/tensorflow,petewarden/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,kevin-coder/tensorflow-fork,gunan/tensorflow,brchiu/tensorflow,alshedivat/tensorflow,jhseu/tensorflow,arborh/tensorflow,annarev/tensorflow,theflofly/tensorflow,AnishShah/tensorflow,ghchinoy/tensorflow,Bismarrck/tensorflow,jhseu/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,Bismarrck/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow-pywrap_saved_model,girving/tensorflow,frreiss/tensorflow-fred,arborh/tensorflow,kevin-coder/tensorflow-fork,karllessard/tensorflow,tensorflow/tensorflow,ZhangXinNan/tensorflow,dancingdan/tensorflow,caisq/tensorflow,ghchinoy/tensorflow,adit-chandra/tensorflow,Intel-Corporation/tensorflow,brchiu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,alsrgv/tensorflow,jendap/tensorflow,annarev/tensorflow,aldian/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,ageron/tensorflow,aldian/tensorflow,theflofly/tensorflow,paolodedios/tensorflow,jbedorf/tensorflow,sarvex/tensorflow,tensorflow/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,theflofly/tensorflow,brchiu/tensorflow,drpngx/tensorflow,snnn/tensorflow,yongtang/tensorflow,DavidNorman/tensorflow,ageron/tensorflow,chemelnucfin/tensorflow,dongjoon-hyun/tensorflow,freedomtan/tensorflow,hehongliang/tensorflow,kobejean/tensorflow,DavidNorman/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xodus7/tensorflow,chemelnucfin/tensorflow,alshedivat/tensorflow,jendap/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,chemelnucfin/tensorflow,snnn/tensorflow,ppwwyyxx/tensorflow,jbedorf/tensorflow,asimshankar/tensorflow,asimshankar/tensorflow,drpngx/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,apark263/tensorflow,meteorcloudy/tensorflow,davidzchen/tensorflow,jbedorf/tensorflow,kobejean/tensorflow,DavidNorman/tensorflow,xodus7/tensorflow,jhseu/tensorflow,aam-at/tensorflow,petewarden/tensorflow,snnn/tensorflow,jart/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,girving/tensorflow,yongtang/tensorflow,ageron/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,girving/tensorflow,brchiu/tensorflow,jart/tensorflow,renyi533/tensorflow,jalexvig/tensorflow,hfp/tensorflow-xsmm,alsrgv/tensorflow,jart/tensorflow,aselle/tensorflow,asimshankar/tensorflow,kevin-coder/tensorflow-fork,karllessard/tensorflow,drpngx/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jalexvig/tensorflow,dongjoon-hyun/tensorflow,gautam1858/tensorflow,alshedivat/tensorflow,gunan/tensorflow,alshedivat/tensorflow,aldian/tensorflow,seanli9jan/tensorflow,seanli9jan/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,jendap/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,snnn/tensorflow,seanli9jan/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,brchiu/tensorflow,sarvex/tensorflow,petewarden/tensorflow,alshedivat/tensorflow,drpngx/tensorflow,paolodedios/tensorflow,kevin-coder/tensorflow-fork,drpngx/tensorflow,jart/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,DavidNorman/tensorflow,tensorflow/tensorflow,jalexvig/tensorflow,aldian/tensorflow,arborh/tensorflow,Intel-Corporation/tensorflow,hfp/tensorflow-xsmm,petewarden/tensorflow,jalexvig/tensorflow,seanli9jan/tensorflow,dongjoon-hyun/tensorflow,hfp/tensorflow-xsmm,aldian/tensorflow,aldian/tensorflow,apark263/tensorflow,davidzchen/tensorflow,hehongliang/tensorflow,cxxgtxy/tensorflow,frreiss/tensorflow-fred,seanli9jan/tensorflow,alsrgv/tensorflow,Bismarrck/tensorflow,petewarden/tensorflow,ghchinoy/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,annarev/tensorflow,arborh/tensorflow,jendap/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aselle/tensorflow,AnishShah/tensorflow,Intel-tensorflow/tensorflow,manipopopo/tensorflow,kevin-coder/tensorflow-fork,alsrgv/tensorflow,apark263/tensorflow,caisq/tensorflow,karllessard/tensorflow,ZhangXinNan/tensorflow,aselle/tensorflow,Bismarrck/tensorflow,renyi533/tensorflow,aselle/tensorflow,alsrgv/tensorflow,meteorcloudy/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,brchiu/tensorflow,arborh/tensorflow,jhseu/tensorflow,sarvex/tensorflow,manipopopo/tensorflow,alshedivat/tensorflow,ghchinoy/tensorflow,kevin-coder/tensorflow-fork,gautam1858/tensorflow,jendap/tensorflow,arborh/tensorflow,meteorcloudy/tensorflow,xzturn/tensorflow,chemelnucfin/tensorflow,cxxgtxy/tensorflow,aselle/tensorflow,alsrgv/tensorflow,sarvex/tensorflow,ageron/tensorflow,xzturn/tensorflow,Bismarrck/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,davidzchen/tensorflow,caisq/tensorflow,adit-chandra/tensorflow,theflofly/tensorflow,aselle/tensorflow,caisq/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Bismarrck/tensorflow,chemelnucfin/tensorflow,hfp/tensorflow-xsmm,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,DavidNorman/tensorflow,snnn/tensorflow,chemelnucfin/tensorflow,ZhangXinNan/tensorflow,Bismarrck/tensorflow,Intel-Corporation/tensorflow,ghchinoy/tensorflow,kobejean/tensorflow,karllessard/tensorflow,DavidNorman/tensorflow,Intel-Corporation/tensorflow,dongjoon-hyun/tensorflow,frreiss/tensorflow-fred,kevin-coder/tensorflow-fork,girving/tensorflow,Intel-Corporation/tensorflow,alshedivat/tensorflow,jbedorf/tensorflow,kobejean/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,renyi533/tensorflow,renyi533/tensorflow,alshedivat/tensorflow,manipopopo/tensorflow,DavidNorman/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,DavidNorman/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,seanli9jan/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,manipopopo/tensorflow,caisq/tensorflow,dongjoon-hyun/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,AnishShah/tensorflow,drpngx/tensorflow,Bismarrck/tensorflow,ghchinoy/tensorflow,hfp/tensorflow-xsmm,xodus7/tensorflow,girving/tensorflow,jendap/tensorflow,jbedorf/tensorflow,meteorcloudy/tensorflow,ageron/tensorflow,ZhangXinNan/tensorflow,adit-chandra/tensorflow,manipopopo/tensorflow,kobejean/tensorflow,freedomtan/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ZhangXinNan/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,xodus7/tensorflow,aldian/tensorflow,caisq/tensorflow,jbedorf/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,theflofly/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,ZhangXinNan/tensorflow,drpngx/tensorflow,jalexvig/tensorflow,davidzchen/tensorflow,alsrgv/tensorflow,manipopopo/tensorflow,gunan/tensorflow,cxxgtxy/tensorflow,dongjoon-hyun/tensorflow,gautam1858/tensorflow,ppwwyyxx/tensorflow,petewarden/tensorflow,petewarden/tensorflow,dancingdan/tensorflow,xzturn/tensorflow,ppwwyyxx/tensorflow,ghchinoy/tensorflow,yongtang/tensorflow,karllessard/tensorflow,hfp/tensorflow-xsmm,girving/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,girving/tensorflow,freedomtan/tensorflow,ppwwyyxx/tensorflow,hfp/tensorflow-xsmm,ZhangXinNan/tensorflow,davidzchen/tensorflow,aselle/tensorflow,jalexvig/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow,manipopopo/tensorflow,annarev/tensorflow,kobejean/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,meteorcloudy/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,drpngx/tensorflow,gautam1858/tensorflow,kobejean/tensorflow,jbedorf/tensorflow,meteorcloudy/tensorflow,brchiu/tensorflow,Intel-tensorflow/tensorflow,kevin-coder/tensorflow-fork,gunan/tensorflow,ageron/tensorflow,xodus7/tensorflow,petewarden/tensorflow,aselle/tensorflow,apark263/tensorflow,alshedivat/tensorflow,paolodedios/tensorflow,alsrgv/tensorflow,asimshankar/tensorflow,xodus7/tensorflow,xodus7/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,aldian/tensorflow,snnn/tensorflow,apark263/tensorflow,jart/tensorflow,meteorcloudy/tensorflow,ageron/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,petewarden/tensorflow,petewarden/tensorflow,jhseu/tensorflow,arborh/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jalexvig/tensorflow,gautam1858/tensorflow,ZhangXinNan/tensorflow,jart/tensorflow,frreiss/tensorflow-fred,ghchinoy/tensorflow,apark263/tensorflow,DavidNorman/tensorflow,davidzchen/tensorflow,gunan/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,jart/tensorflow,Bismarrck/tensorflow,ppwwyyxx/tensorflow,jalexvig/tensorflow,alsrgv/tensorflow,hfp/tensorflow-xsmm,Intel-Corporation/tensorflow,girving/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,girving/tensorflow,jhseu/tensorflow,drpngx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,snnn/tensorflow,aselle/tensorflow,aam-at/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,apark263/tensorflow,dancingdan/tensorflow,aam-at/tensorflow,hehongliang/tensorflow,jart/tensorflow,ageron/tensorflow,aselle/tensorflow,ppwwyyxx/tensorflow,renyi533/tensorflow,caisq/tensorflow,yongtang/tensorflow,jhseu/tensorflow,dancingdan/tensorflow,ageron/tensorflow,girving/tensorflow,arborh/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,dongjoon-hyun/tensorflow,renyi533/tensorflow,gunan/tensorflow,annarev/tensorflow,AnishShah/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,kevin-coder/tensorflow-fork,petewarden/tensorflow,meteorcloudy/tensorflow,annarev/tensorflow,ghchinoy/tensorflow,asimshankar/tensorflow,cxxgtxy/tensorflow