contrib.graph_editor.ControlOutputs

tf.contrib.graph_editor.ControlOutputs

class tf.contrib.graph_editor.ControlOutputs

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

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

The control outputs topology.

Properties

graph

Methods

__init__

__init__(graph)

Create a dictionary of control-output dependencies.

Args:

  • graph: a tf.Graph.

Returns:

A dictionary where a key is a tf.Operation instance and the corresponding value is a list of all the ops which have the key as one of their control-input dependencies.

Raises:

  • TypeError: graph is not a tf.Graph.

get

get(op)

return the control outputs of op.

get_all

get_all()

update

update()

Update the control outputs if the graph has changed.

© 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/ControlOutputs

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部