Google I/O'yu ayarladığınız için teşekkür ederiz. İsteğe bağlı olarak tüm oturumları görüntüleyin İsteğe bağlı olarak izleyin

tensör akışı:: operasyon:: Toplamak

#include <array_ops.h>

params indices göre dilimler toplayın .

Özet

indices , herhangi bir boyutun (genellikle 0-D veya 1-D) bir tamsayı tensörü olmalıdır. indices.shape + params.shape[1:] şeklinde 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], :, ..., :]

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

validate_indices : KULLANIMDAN KALDIRILDI. Bu işlem CPU'ya atanırsa, indices değerlerin her zaman aralık içinde olduğu doğrulanır. GPU'ya atanırsa, sınır dışı endeksler, bir hata oluşturmayı da içerebilecek güvenli ancak belirtilmemiş davranışla sonuçlanır.

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

 operator::tensorflow::Output() const 

Genel statik işlevler

ValidateIndices

Attrs ValidateIndices(
  bool x
)