tf.group

tf.group

tf.group

group(
    *inputs,
    **kwargs
)

Defined in tensorflow/python/ops/control_flow_ops.py.

See the guide: Control Flow > Control Flow Operations

Create an op that groups multiple operations.

When this op finishes, all ops in input have finished. This op has no output.

See also tuple and control_dependencies.

Args:

inputs: Zero or more tensors to group. kwargs: Optional parameters to pass when constructing the NodeDef. name: A name for this operation (optional).

Returns:

An Operation that executes all its inputs.

Raises:

  • ValueError: If an unknown keyword argument is provided.

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部