Compiles a computation for execution in the TFF native runtime.

This function transforms the proto underlying comp by transforming it to call-dominant form (see tff.framework.transform_to_call_dominant for definition).

comp Instance of computation_base.Computation to compile.
transform_math_to_tf Whether to additional transform math to TensorFlow graphs. Necessary if running on a execution state without ReferenceResolvingExecutors underneath FederatingExecutors.

A new computation_base.Computation representing the compiled version of comp.