tensor akışı:: işlem:: Toplamak

#include <array_ops.h>

indices göre params dilimler toplayın .

Özet

indices herhangi bir boyutta (genellikle 0-D veya 1-D) bir tamsayı tensörü olmalıdır. Shape indices.shape + params.shape[1:] ile bir çıktı tensörü üretir; 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 uygun şekilde izin verecektir.

validate_indices : KULLANIMDAN KALDIRILDI. Bu işlem CPU'ya atanırsa indices değerlerin her zaman aralık dahilinde olduğu doğrulanır. Sınır dışı dizinler GPU'ya atanırsa güvenli ancak belirtilmemiş davranışlara neden olur ve bu davranışa hatanın ortaya çıkması da dahil olabilir.

Argümanlar:

İadeler:

  • Output : Çıkış 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

Kamu işlevleri

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

Genel statik işlevler

ValidateIndices (bool x)

Yapılar

tensorflow:: ops:: Topla:: Öznitelikler

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

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamu işlevleri

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 

Genel statik işlevler

Endeksleri Doğrula

Attrs ValidateIndices(
  bool x
)