ring_reducer.cc errata: 1. Block in the current (blockable) thread when pre-copying input to output rather than continuing in the callback which cannot block. 2. Clear RingField array on exit to more promptly release Refs on output tensor buffer. 3. Properly set the forward_from_array parameter in SubContext.
ring_reducer.cc errata:
1. Block in the current (blockable) thread when pre-copying input to
output rather than continuing in the callback which cannot block.
2. Clear RingField array on exit to more promptly release Refs on
output tensor buffer.
3. Properly set the forward_from_array parameter in SubContext.

PiperOrigin-RevId: 196188047

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