TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.autograph.experimental.do_not_convert

TensorFlow 1 version View source on GitHub

Decorator that suppresses the conversion of a function.

Aliases:

  • tf.compat.v1.autograph.experimental.do_not_convert
  • tf.compat.v2.autograph.experimental.do_not_convert
tf.autograph.experimental.do_not_convert(func=None)

Args:

  • func: function to decorate.

Returns:

If func is not None, returns a Callable which is equivalent to func, but is not converted by AutoGraph. If func is None, returns a decorator that, when invoked with a single func argument, returns a Callable equivalent to the above case.