tf.contrib.graph_editor.select_ops_and_ts
Stay organized with collections
Save and categorize content based on your preferences.
Helper to select operations and tensors.
tf.contrib.graph_editor.select_ops_and_ts(
*args, **kwargs
)
Args |
*args
|
list of 1) regular expressions (compiled or not) or 2) (array of)
tf.Operation 3) (array of) tf.Tensor. Regular expressions matching
tensors must start with the comment "(?#ts)" , for instance:
"(?#ts)^foo/.*" .
|
**kwargs
|
'graph': tf.Graph in which to perform the regex query.This is
required when using regex.
'positive_filter': an elem if selected only if positive_filter(elem) is
True . This is optional.
|
Raises |
TypeError
|
if the optional keyword argument graph is not a tf.Graph
or if an argument in args is not an (array of) tf.Tensor
or an (array of) tf.Operation or a string or a regular expression.
|
ValueError
|
if one of the keyword arguments is unexpected or if a regular
expression is used without passing a graph as a keyword argument.
|
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."],[],[]]