Removed redundant str() call in _maybe_define_function.
Removed redundant str() call in _maybe_define_function.

It was causing a significant slowdown when either of the input tensors
had <1000 elements (which is a NumPy heuristic for collapsing the str
with ...)

Reproducer:

def square(X):
  return tf.matmul(X, X, transpose_a=True)

square_f = tf.function(square)

>>> X = tf.zeros([42, 24])  # 1008 elements.
>>> _ = square_f(X)
>>> %timeit square_f(X)
10000 loops, best of 3: 167 ?s per loop

>>> X = tf.zeros([42, 1])
>>> _ = square_f(X)
>>> %timeit square_f(X)
100 loops, best of 3: 1.54 ms per loop

PiperOrigin-RevId: 237459548

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