tfp.experimental.auto_batching.instructions.Function
A function subject to auto-batching, callable with FunctionCallOp
.
View aliases
Main aliases
tfp.experimental.auto_batching.frontend.instructions.Function
, tfp.experimental.auto_batching.frontend.st.inst.Function
, tfp.experimental.auto_batching.frontend.stack.inst.Function
, tfp.experimental.auto_batching.stack_optimization.inst.Function
, tfp.experimental.auto_batching.stackless.inst.Function
tfp.experimental.auto_batching.instructions.Function(
graph, vars_in, vars_out, type_inference, name=None
)
Args |
graph
|
A ControlFlowGraph comprising the function's body.
|
vars_in
|
List of string giving the names of the formal parameters
of the function.
|
vars_out
|
Pattern of string giving the name(s) of the variables
the function returns. Ergo, functions must be canonicalized to
place the return value(s) in the same-named variable(s) along
every path to the exit.
|
type_inference
|
A callable which takes a list of patterns of TensorType s
corresponding to the data types of vars_in . This callable must
return a pattern of TensorType s corresponding to the structure
assembled by the return_vars .
|
name
|
Optional string denoting this Function in printed output.
|
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 2023-11-21 UTC.
[null,null,["Last updated 2023-11-21 UTC."],[],[]]