Small refactor of `thresholds` default value and validation steps. The number of thresholds is used instead of the user specified type of the `thresholds` kwarg to determine the output of the result method:
Small refactor of `thresholds` default value and validation steps. The number of thresholds is used instead of the user specified type of the `thresholds` kwarg to determine the output of the result method:

`thresholds` is a scalar or single element list/tuple -> return scalar
`thresholds` is a multi element list/tuple -> return list

This is functionally equivalent to the previous code except for cases where the user passes in a single element list for the thresholds kwarg. In the previous code, this would cause the result method to return a list whereas now it returns a scalar.

PiperOrigin-RevId: 225079221

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