tensorflow::ops::Gather

#include <array_ops.h>

params , indices göre dilimler toplayın .

Özet

indices herhangi bir boyutta (genellikle 0 boyutlu veya 1 boyutlu) bir tamsayı tensörü olmalıdır. Çıktı tensörü indices.shape + params.shape[1:] şeklinde olmalıdır; burada:

    # Scalar indices
    output[:, ..., :] = params[indices, :, ... :]

    # Vector indices
    output[i, :, ..., :] = params[indices[i], :, ... :]

    # Higher rank indices
    output[i, ..., j, :, ... :] = params[indices[i, ..., j], :, ..., :]

Eğer indices bir permütasyon ise ve len(indices) == params.shape[0] ise, bu işlem params buna göre permüte edecektir.

validate_indices : KULLANIMDAN KALDIRILDI. Bu işlem CPU'ya atanırsa, indices değerlerin her zaman aralık içinde olup olmadığı doğrulanır. GPU'ya atanırsa, sınır dışı indeksler güvenli ancak belirtilmemiş bir davranışa neden olur; bu davranış bir hata oluşmasını içerebilir.

Argümanlar:

İadeler:

  • Output : Çıktı tensörü.

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

Gather (const :: tensorflow::Scope & scope, :: tensorflow::Input params, :: tensorflow::Input indices)
Gather (const :: tensorflow::Scope & scope, :: tensorflow::Input params, :: tensorflow::Input indices, const Gather::Attrs & attrs)

Genel özellikler

operation
output

Kamusal işlevler

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Herkese açık statik fonksiyonlar

ValidateIndices (bool x)

Yapılar

tensorflow::ops::Gather::Attrs

Gather için isteğe bağlı özellik ayarlayıcıları.

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamusal işlevler

Toplamak

 Gather(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input params,
  ::tensorflow::Input indices
)

Toplamak

 Gather(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input params,
  ::tensorflow::Input indices,
  const Gather::Attrs & attrs
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

Herkese açık statik fonksiyonlar

Dizinleri Doğrula

Attrs ValidateIndices(
  bool x
)