# tff.framework.set_default_context

<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) |

Places `ctx` at the bottom of the stack.

    tff.framework.set_default_context(
        ctx
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `ctx` | A [`tff.framework.AsyncContext`](https://www.tensorflow.org/federated/api_docs/python/tff/framework/AsyncContext) or [`tff.framework.SyncContext`](https://www.tensorflow.org/federated/api_docs/python/tff/framework/SyncContext). |

<br />