Merge pull request #39511 from mmoffitt:patch-2

PiperOrigin-RevId: 311576370
Change-Id: If2775109af426a1a5aadeaab9f51e131d6461d02
This commit is contained in:
TensorFlower Gardener 2020-05-14 11:56:37 -07:00
commit 9ea01fb495

View File

@ -109,7 +109,7 @@ class _FrequentTracingDetector(object):
"retracing. Tracing is expensive and the excessive number of "
"tracings could be due to (1) creating @tf.function repeatedly in "
"a loop, (2) passing tensors with different shapes, (3) passing "
"Python objects instead of tensors. For (1), please define your "
"Python objects instead of tensors. For (1), please define your "
"@tf.function outside of the loop. For (2), @tf.function has "
"experimental_relax_shapes=True option that relaxes argument "
"shapes that can avoid unnecessary retracing. For (3), please "