Similar to cl/198786266 specify the `maximum_iterations` to tf.while_loop in tf.foldl and tf.foldr to be compatible with XLA.
Similar to cl/198786266 specify the `maximum_iterations` to tf.while_loop in tf.foldl and tf.foldr to be compatible with XLA.

PiperOrigin-RevId: 225268779

frreiss/tensorflow-fred,hfp/tensorflow-xsmm,Intel-tensorflow/tensorflow,ageron/tensorflow,jbedorf/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,gunan/tensorflow,alsrgv/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,freedomtan/tensorflow,adit-chandra/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,chemelnucfin/tensorflow,cxxgtxy/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,jbedorf/tensorflow,hfp/tensorflow-xsmm,davidzchen/tensorflow,freedomtan/tensorflow,gunan/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,jendap/tensorflow,jhseu/tensorflow,Bismarrck/tensorflow,chemelnucfin/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,kevin-coder/tensorflow-fork,petewarden/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,theflofly/tensorflow,alsrgv/tensorflow,ageron/tensorflow,theflofly/tensorflow,aam-at/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ppwwyyxx/tensorflow,arborh/tensorflow,ppwwyyxx/tensorflow,ageron/tensorflow,ghchinoy/tensorflow,DavidNorman/tensorflow,karllessard/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,theflofly/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,alsrgv/tensorflow,arborh/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,adit-chandra/tensorflow,jbedorf/tensorflow,petewarden/tensorflow,renyi533/tensorflow,jendap/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,jendap/tensorflow,jbedorf/tensorflow,asimshankar/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,petewarden/tensorflow,sarvex/tensorflow,alsrgv/tensorflow,aam-at/tensorflow,gunan/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,karllessard/tensorflow,annarev/tensorflow,kevin-coder/tensorflow-fork,Intel-Corporation/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,aldian/tensorflow,sarvex/tensorflow,hfp/tensorflow-xsmm,hfp/tensorflow-xsmm,sarvex/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ghchinoy/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,jbedorf/tensorflow,karllessard/tensorflow,asimshankar/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,hfp/tensorflow-xsmm,jendap/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,alsrgv/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,kevin-coder/tensorflow-fork,paolodedios/tensorflow,alsrgv/tensorflow,Intel-tensorflow/tensorflow,kevin-coder/tensorflow-fork,Bismarrck/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,annarev/tensorflow,cxxgtxy/tensorflow,ghchinoy/tensorflow,paolodedios/tensorflow,gunan/tensorflow,karllessard/tensorflow,jhseu/tensorflow,xzturn/tensorflow,xzturn/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,annarev/tensorflow,annarev/tensorflow,renyi533/tensorflow,gunan/tensorflow,apark263/tensorflow,xzturn/tensorflow,jbedorf/tensorflow,cxxgtxy/tensorflow,DavidNorman/tensorflow,jhseu/tensorflow,jendap/tensorflow,apark263/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,apark263/tensorflow,ghchinoy/tensorflow,jhseu/tensorflow,annarev/tensorflow,annarev/tensorflow,jendap/tensorflow,frreiss/tensorflow-fred,arborh/tensorflow,xzturn/tensorflow,theflofly/tensorflow,ageron/tensorflow,paolodedios/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,chemelnucfin/tensorflow,arborh/tensorflow,chemelnucfin/tensorflow,Bismarrck/tensorflow,theflofly/tensorflow,aam-at/tensorflow,chemelnucfin/tensorflow,jendap/tensorflow,ageron/tensorflow,jhseu/tensorflow,aam-at/tensorflow,jbedorf/tensorflow,apark263/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,arborh/tensorflow,davidzchen/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,theflofly/tensorflow,ppwwyyxx/tensorflow,annarev/tensorflow,kevin-coder/tensorflow-fork,xzturn/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,Bismarrck/tensorflow,kevin-coder/tensorflow-fork,hfp/tensorflow-xsmm,chemelnucfin/tensorflow,renyi533/tensorflow,theflofly/tensorflow,ageron/tensorflow,chemelnucfin/tensorflow,cxxgtxy/tensorflow,paolodedios/tensorflow,paolodedios/tensorflow,apark263/tensorflow,ageron/tensorflow,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,renyi533/tensorflow,chemelnucfin/tensorflow,apark263/tensorflow,sarvex/tensorflow,jendap/tensorflow,arborh/tensorflow,xzturn/tensorflow,theflofly/tensorflow,Intel-Corporation/tensorflow,arborh/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,jendap/tensorflow,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,Intel-tensorflow/tensorflow,asimshankar/tensorflow,yongtang/tensorflow,kevin-coder/tensorflow-fork,ppwwyyxx/tensorflow,theflofly/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,apark263/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,apark263/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jbedorf/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,ageron/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,ageron/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,aam-at/tensorflow,aldian/tensorflow,gunan/tensorflow,jhseu/tensorflow,yongtang/tensorflow,arborh/tensorflow,hfp/tensorflow-xsmm,davidzchen/tensorflow,aldian/tensorflow,aam-at/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,ageron/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,adit-chandra/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,asimshankar/tensorflow,aldian/tensorflow,xzturn/tensorflow,alsrgv/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,alsrgv/tensorflow,theflofly/tensorflow,ageron/tensorflow,jendap/tensorflow,adit-chandra/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,jbedorf/tensorflow,Bismarrck/tensorflow,arborh/tensorflow,renyi533/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aldian/tensorflow,kevin-coder/tensorflow-fork,kevin-coder/tensorflow-fork,gunan/tensorflow,gunan/tensorflow,davidzchen/tensorflow,hfp/tensorflow-xsmm,annarev/tensorflow,freedomtan/tensorflow,asimshankar/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,asimshankar/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jendap/tensorflow,jbedorf/tensorflow,apark263/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,sarvex/tensorflow,apark263/tensorflow,Intel-tensorflow/tensorflow,kevin-coder/tensorflow-fork,arborh/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,alsrgv/tensorflow,petewarden/tensorflow,hfp/tensorflow-xsmm,ageron/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,Bismarrck/tensorflow,ppwwyyxx/tensorflow,adit-chandra/tensorflow,ghchinoy/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,ppwwyyxx/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,theflofly/tensorflow,Intel-tensorflow/tensorflow,arborh/tensorflow,chemelnucfin/tensorflow,xzturn/tensorflow,asimshankar/tensorflow,sarvex/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,yongtang/tensorflow,gunan/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,kevin-coder/tensorflow-fork,adit-chandra/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,asimshankar/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,aam-at/tensorflow,davidzchen/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alsrgv/tensorflow,asimshankar/tensorflow,xzturn/tensorflow,aldian/tensorflow,gautam1858/tensorflow,Bismarrck/tensorflow,Bismarrck/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,davidzchen/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,Bismarrck/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,asimshankar/tensorflow,sarvex/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,aldian/tensorflow,tensorflow/tensorflow,alsrgv/tensorflow,adit-chandra/tensorflow,apark263/tensorflow,ghchinoy/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,cxxgtxy/tensorflow,gunan/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow