# tff.Computation

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |

An abstract interface for all classes that represent computations.

Inherits From: [`TypedObject`](https://www.tensorflow.org/federated/api_docs/python/tff/TypedObject)

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `type_signature` | Returns the TFF type of this object. |

<br />

## Methods

### `__call__`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    @abc.abstractmethod
    __call__(
        *args, **kwargs
    )

Invokes the computation with the given arguments in the given context.

<br />

<br />

<br />

| Args ||
|---|---|
| `*args` | The positional arguments. |
| `**kwargs` | The keyword-based arguments. |

<br />

<br />

<br />

<br />

| Returns ||
|---|---|
| The result of invoking the computation, the exact form of which depends on the context. ||

<br />