Making RPC op handle the case where cancellation manager is not initialized in OpKernelContext.
Making RPC op handle the case where cancellation manager is not initialized in OpKernelContext.

Fixes #19496

PiperOrigin-RevId: 198488860

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