<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/types/core.py#L90-L108) |

Represents the type of a TensorFlow callable.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.types.experimental.FunctionType`](https://www.tensorflow.org/api_docs/python/tf/types/experimental/FunctionType)

<br />

    tf.types.experimental.FunctionType(
        parameters=None, *, return_annotation, __validate_parameters__=True
    )

FunctionType inherits from inspect.Signature which canonically represents the
structure (and optionally type) information of input parameters and output of
a Python function. Additionally, it integrates with the tf.function type
system ([`tf.types.experimental.TraceType`](https://www.tensorflow.org/api_docs/python/tf/types/experimental/TraceType)) to provide a holistic
representation of the I/O contract of the callable. It is used for:

- Canonicalization and type-checking of Python input arguments
- Type-based dispatch to concrete functions
- Packing/unpacking structured python values to Tensors
- Generation of structured placeholder values for tracing

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `parameters` | <br /> <br /> |
| `return_annotation` | <br /> <br /> |

<br />

## Child Classes

[`class empty`](https://www.tensorflow.org/api_docs/python/tf/types/experimental/FunctionType/empty)

## Methods

### `bind`

    bind(
        *args, **kwargs
    )

Get a BoundArguments object, that maps the passed `args` and `kwargs` to the function's signature.
Raises `TypeError`
if the passed arguments can not be bound.

### `bind_partial`

    bind_partial(
        *args, **kwargs
    )

Get a BoundArguments object, that partially maps the passed `args` and `kwargs` to the function's signature.
Raises `TypeError` if the passed arguments can not be bound.

### `from_callable`

[View source](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/types/core.py#L106-L108)

    @classmethod
    from_callable(
        obj, *, follow_wrapped=True
    )

Constructs Signature for the given callable object.

### `replace`

    replace(
        *, parameters=_void, return_annotation=_void
    )

Creates a customized copy of the Signature.
Pass 'parameters' and/or 'return_annotation' arguments
to override them in the new copy.

### `__eq__`

    __eq__(
        other
    )

Return self==value.