tff.backends.native.transform_to_native_form
Stay organized with collections
Save and categorize content based on your preferences.
Compiles a computation for execution in the TFF native runtime.
tff.backends.native.transform_to_native_form(
comp: tff.framework.ConcreteComputation
,
transform_math_to_tf: bool = False,
grappler_config: Optional[tf.compat.v1.ConfigProto] = None
) -> tff.framework.ConcreteComputation
This function transforms the proto underlying comp
by transforming it
to call-dominant form (see tff.framework.to_call_dominant
for
definition).
Args |
comp
|
Instance of computation_impl.ConcreteComputation 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.
|
grappler_config
|
Configuration for Grappler optimizations to perform on the
TensorFlow computations. If None , Grappler will not be run and no
optimizations wil be applied.
|
Returns |
A new computation_impl.ConcreteComputation representing the compiled
version of comp .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-23 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"lastModified": "Last updated 2024-08-23 UTC.",
"confidential": False
}