[tf.data] Handle `tf.SparseTensor` elements in the stats ops.
[tf.data] Handle `tf.SparseTensor` elements in the stats ops.

PiperOrigin-RevId: 183705008

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