# tff.framework.to_call_dominant

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

Transforms local (non-federated) computations into call-dominant form.

    tff.framework.to_call_dominant(
        comp: https://www.tensorflow.org/federated/api_docs/python/tff/framework/ComputationBuildingBlock
    ) -> https://www.tensorflow.org/federated/api_docs/python/tff/framework/ComputationBuildingBlock

<br />

<br />

<br />

| ## Args ||
|---|---|
| `comp` | A computation to transform. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A transformed but semantically-equivalent `comp`. The resulting `comp` will be in CDF (call-dominant form), as defined by the following CFG: <br /> External -\> Intrinsic \| Data \| Compiled Computation \| Reference(to top-level lambda parameter) \| Reference(to value outside of `comp`) ExternalCall -\> Call(External, CDFElem) CDFElem -\> External \| Reference to a bound call to an External \| Selection(CDFElem, index) \| Lambda(Block(\[bindings for ExternalCalls, CDF)) CDF -\> CDFElem \| Struct(CDF, ...) \| Lambda(CDF) ||

<br />