tf.contrib.graph_editor.swap_ts
Stay organized with collections
Save and categorize content based on your preferences.
For each tensor's pair, swap the end of (t0,t1).
tf.contrib.graph_editor.swap_ts(
ts0, ts1, can_modify=None, cannot_modify=None
)
B0 B1 B0 B1
| | => X
A0 A1 A0 A1
Args |
ts0
|
an object convertible to a list of tf.Tensor .
|
ts1
|
an object convertible to a list of tf.Tensor .
|
can_modify
|
iterable of operations which can be modified. Any operation
outside within_ops will be left untouched by this function.
|
cannot_modify
|
iterable of operations which cannot be modified.
Any operation within cannot_modify will be left untouched by this
function.
|
Returns |
The number of individual modifications made by the function.
|
Raises |
TypeError
|
if ts0 or ts1 cannot be converted to a list of tf.Tensor.
|
TypeError
|
if can_modify or cannot_modify is not None and cannot be
converted to a list of tf.Operation.
|
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 2020-10-01 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 2020-10-01 UTC."],[],[]]