tensorflow / 2.9.1 / types / experimental / concretefunction.html /

tf.types.experimental.ConcreteFunction

Base class for graph functions.

Inherits From: Callable

A ConcreteFunction encapsulates a single graph function definition and is differentiable under tf.GradientTape contexts.

Methods

__call__

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, tf.data.Dataset, 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
*args positional argument for this call
**kwargs keyword arguments for this call
Returns
The execution results.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/types/experimental/ConcreteFunction