tensör akışı:: işlem:: Segment Ortalaması
#include <math_ops.h>Bir tensörün bölümleri boyunca ortalamayı hesaplar.
Özet
Segmentlerin açıklaması için segmentasyon bölümünü okuyun.
 Öyle bir tensör hesaplar ki \(output_i = { data_j}{N}\) burada mean segment_ids[j] == i olacak şekilde j üzerindedir ve N , toplanan değerlerin toplam sayısıdır.
 Belirli bir segment ID i için ortalama boşsa, output[i] = 0 . 

Örneğin:
c = tf.constant([[1.0,2,3,4], [4, 3, 2, 1], [5,6,7,8]]) tf.segment_mean(c, tf.constant([0, 0, 1])) # ==> [[2.5, 2.5, 2.5, 2.5], # [5, 6, 7, 8]]
Argümanlar:
- kapsam: Bir Kapsam nesnesi
 -  segment_ids: Boyutu, 
datailk boyutunun boyutuna eşit olan 1 boyutlu bir tensör. Değerler sıralanmalı ve tekrarlanabilir olmalıdır. 
İade:
-  
Output: Segment sayısı olankboyutuna sahip 0 boyutu dışında verilerle aynı şekle sahiptir. 
Yapıcılar ve Yıkıcılar | |
|---|---|
 SegmentMean (const :: tensorflow::Scope & scope, :: tensorflow::Input data, :: tensorflow::Input segment_ids) | 
Genel özellikler | |
|---|---|
 operation | |
 output | |
Kamu işlevleri | |
|---|---|
 node () const | ::tensorflow::Node * | 
 operator::tensorflow::Input () const | |
 operator::tensorflow::Output () const |  |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamu işlevleri
Segment Ortalaması
SegmentMean( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input segment_ids )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const