tensorflow::ops::EnsureShape

#include <array_ops.h>

Tensorun şeklinin beklenen şekle uymasını sağlar.

Özet

Giriş tensörünün şekli belirtilen şekille eşleşmiyorsa hata verir. Aksi takdirde giriş tensörünü döndürür.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • Giriş: Şekli doğrulanacak bir tensör.
  • Şekil: Giriş tensörünün beklenen (muhtemelen kısmen belirtilmiş) şekli.

İadeler:

  • Output : Giriş tensörü veya değeriyle aynı şekle ve içeriğe sahip bir tensör.

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

EnsureShape (const :: tensorflow::Scope & scope, :: tensorflow::Input input, PartialTensorShape shape)

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

EnsureShape

 EnsureShape(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  PartialTensorShape shape
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const