tfp.experimental.auto_batching.instructions.Function
Stay organized with collections
Save and categorize content based on your preferences.
A function subject to auto-batching, callable with FunctionCallOp
.
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.
[[["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 2023-11-21 UTC."],[],[]]