TensorFlow:tf.segment_min函数

2018-01-11 10:22 更新

tf.segment_min 函数

segment_mean(
    data,
    segment_ids,
    name=None
)

请参阅指南:数学函数>分割

计算张量的沿段的最小值.

计算的张量,例如:\(output_i = \ min_j(的Data_j)\),其中min是在j,使得segment_ids[j] == i.

如果给定的段ID i的最小为空,则有output[i] = 0.

TensorFlow函数

函数参数

  • data:一个Tensor;必须是下列类型之一:float32,float64,int32,int64,uint8,int16,int8,uint16,half.
  • segment_ids:一个Tensor;必须是以下类型之一:int32,int64;一维张量,其秩等于data第一维的秩;值应该被排序,允许重复.
  • name:操作的名称(可选).

函数返回值

tf.segment_min函数返回与data有相同的类型的Tensor,与数据具有相同的形状, 但大小为 k(线段的数目)的维度0除外.


以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy