Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions official/nlp/modeling/layers/text_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
import tensorflow_text as text # pylint: disable=g-import-not-at-top
except ImportError:
text = None
except tf.errors.NotFoundError as e:
logging.warn("Encountered error when importing tensorflow_text: %s", e)
text = None


def _check_if_tf_text_installed():
Expand Down