ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


Base class for TF callables like those created by tf.function.



View source

Executes this callable.

This behaves like a regular op - in eager mode, it immediately starts execution, returning results. In graph mode, it creates ops which return symbolic TensorFlow values (like tf.Tensor,, etc.). For example, tf.function callables typically generate a tf.raw_ops.PartitionedCall op, but not always - the exact operations being generated are an internal implementation detail.

*args positional argument for this call
**kwargs keyword arguments for this call

The execution results.