We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b0763 commit c6dcd60Copy full SHA for c6dcd60
official/nlp/modeling/layers/text_layers.py
@@ -22,6 +22,9 @@
22
import tensorflow_text as text # pylint: disable=g-import-not-at-top
23
except ImportError:
24
text = None
25
+except tf.errors.NotFoundError as e:
26
+ logging.warn("Encountered error when importing tensorflow_text: %s", e)
27
+ text = None
28
29
30
def _check_if_tf_text_installed():
0 commit comments