tf.dynamic_partition

tf.dynamic_partition

tf.dynamic_partition

dynamic_partition(
    data,
    partitions,
    num_partitions,
    name=None
)

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

See the guide: Tensor Transformations > Slicing and Joining

Partitions data into num_partitions tensors using indices from partitions.

For each index tuple js of size partitions.ndim, the slice data[js, ...] becomes part of 登录查看完整内容