tensorflow::ops::Bucketize

#include <math_ops.h>

'Girdi'yi 'sınırlar' temelinde gruplandırır.

Özet

Örneğin, girişler sınırlar = [0, 10, 100] ise giriş = [[-5, 10000] [150, 10] [5, 100]]

O zaman çıktı şu şekilde olacaktır: output = [[0, 3] [3, 2] [1, 3]]

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • Giriş: int veya float türünde herhangi bir Tensor şekli içerebilir.
  • Sınırlar: Sıralı bir kayan noktalı sayı listesi, kovaların sınırlarını verir.

İadeler:

  • Output : 'Giriş' ile aynı şekle sahip, ancak girişin her değeri kova indeksiyle değiştirilmiş.

(numpy) np.digitize ile eşdeğerdir.

Yapıcılar ve Yıkıcılar

Bucketize (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< float > & boundaries)

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

Kovaya dönüştürmek

 Bucketize(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const gtl::ArraySlice< float > & boundaries
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const