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-09-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-20 UTC."],[],[]]