tf.compat.v1.lite.experimental.convert_op_hints_to_stubs
Stay organized with collections
Save and categorize content based on your preferences.
Converts a graphdef with LiteOp hints into stub operations. (deprecated)
tf.compat.v1.lite.experimental.convert_op_hints_to_stubs(
session=None,
graph_def=None,
write_callback=(lambda graph_def, comments: None)
)
This is used to prepare for toco conversion of complex intrinsic usages.
Note: only one of session or graph_def should be used, not both.
Args |
session
|
A TensorFlow session that contains the graph to convert.
|
graph_def
|
A graph def that we should convert.
|
write_callback
|
A function pointer that can be used to write intermediate
steps of graph transformation (optional).
|
Returns |
A new graphdef with all ops contained in OpHints being replaced by
a single op call with the right parameters.
|
Raises |
ValueError
|
If both session and graph_def are provided.
|
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. Some content is licensed under the numpy license.
Last updated 2024-04-26 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-04-26 UTC."],[],[]]