tensorflow :: ops :: SıralanmamışSegmentMin
#include <math_ops.h>
Bir tensörün segmentleri boyunca minimum değeri hesaplar.
Özet
Segmentlerin açıklaması için segmentasyon bölümünü okuyun.
Bu operatör, (burada) bulunan sıralanmamış segment toplamı operatörüne benzer. Toplamı segmentler üzerinden hesaplamak yerine, minimum şu şekilde hesaplar:
\(output_i = {j...} data_[j...]\) burada min, tuples j...
üzerinde böylelikle segment_ids[j...] == i
.
Belirli bir segment kimliği i
için minimum boşsa, belirli sayısal tür için olası en büyük değeri verir, output[i] = numeric_limits ::max()
output[i] = numeric_limits ::max()
.
Örneğin:
c = tf.constant([[1,2,3,4], [5,6,7,8], [4,3,2,1]]) tf.unsorted_segment_min(c, tf.constant([0, 1, 0]), num_segments=2) # ==> [[ 1, 2, 2, 1], # [5, 6, 7, 8]]
Verilen segment kimliği i
negatifse, karşılık gelen değer atılır ve sonuca dahil edilmez.
Argümanlar:
- kapsam: Bir Scope nesnesi
- segment_ids: Şekli
data.shape
öneki olan bir tensör.
İadeler:
-
Output
: boyutnum_segments
içeren tek bir boyutla değiştirilen ilksegment_ids.rank
boyutları dışında verilerle aynı şekle sahiptir.
Yapıcılar ve Yıkıcılar | |
---|---|
UnsortedSegmentMin (const :: tensorflow::Scope & scope, :: tensorflow::Input data, :: tensorflow::Input segment_ids, :: tensorflow::Input num_segments) |
Genel özellikler | |
---|---|
operation | |
output |
Kamusal işlevler | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
SıralanmamışSegmentMin
UnsortedSegmentMin( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input segment_ids, ::tensorflow::Input num_segments )
düğüm
::tensorflow::Node * node() const
operator :: tensorflow :: Girdi
operator::tensorflow::Input() const
operator :: tensorflow :: Çıktı
operator::tensorflow::Output() const