Have a question? Connect with the community at the TensorFlow Forum Visit Forum

tfnlp.layers.tf_function_if_eager

Applies the @tf.function decorator only if running in eager mode.