contrib.graph_editor.select_ops

tf.contrib.graph_editor.select_ops

tf.contrib.graph_editor.select_ops

select_ops(
    *args,
    **kwargs
)

Defined in tensorflow/contrib/graph_editor/select.py.

See the guide: Graph Editor (contrib) > Module: select

Helper to select operations.

Args:

args: list of 1) regular expressions (compiled or not) or 2) (array of) tf.Operation. tf.Tensor instances are silently ignored.
*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. 'restrict_ops_regex': a regular expression is ignored if it doesn't start with the substring "(?#ops)".

Returns:

A list of tf.Operation.

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.Operation or an (array of) tf.Tensor (silently ignored) 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.

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/graph_editor/select_ops

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部