tensor akışı:: işlem:: CropAndResizeGradBoxes

#include <image_ops.h>

Crop_and_resize işleminin giriş kutusu tensörüne göre gradyanını hesaplar.

Özet

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • dereceler: 4 boyutlu bir şekil tensörü [num_boxes, crop_height, crop_width, depth] .
  • resim: 4 boyutlu bir şekil tensörü [batch, image_height, image_width, depth] . Hem image_height hem de image_width pozitif olması gerekir.
  • kutular: [num_boxes, 4] şeklindeki 2 boyutlu tensör. Tensörün i satırı box_ind[i] görüntüsündeki bir kutunun koordinatlarını belirtir ve normalleştirilmiş koordinatlar [y1, x1, y2, x2] ile belirtilir. y normalleştirilmiş bir koordinat değeri, y * (image_height - 1) adresindeki görüntü koordinatına eşlenir, böylece normalleştirilmiş görüntü yüksekliğinin [0, 1] aralığı, görüntü yüksekliği koordinatlarında '[0, image_height - 1]'e eşlenir. y1 > y2'ye izin veririz; bu durumda örneklenen kırpma, orijinal görüntünün yukarı-aşağı çevrilmiş versiyonu olur. Genişlik boyutu da benzer şekilde ele alınır. [0, 1] aralığının dışındaki normalleştirilmiş koordinatlara izin verilir; bu durumda giriş görüntüsü değerlerini tahmin etmek için extrapolation_value kullanırız.
  • box_ind: [0, batch) içindeki int32 değerlerine sahip [num_boxes] şeklindeki 1 boyutlu tensör. box_ind[i] değeri, i kutunun başvurduğu görüntüyü belirtir.

İsteğe bağlı özellikler (bkz. Attrs ):

  • yöntem: Enterpolasyon yöntemini belirten bir dize. Şimdilik yalnızca 'bilinear' desteklenmektedir.

İadeler:

  • Output : [num_boxes, 4] şeklinde bir 2 boyutlu tensör.

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

CropAndResizeGradBoxes (const :: tensorflow::Scope & scope, :: tensorflow::Input grads, :: tensorflow::Input image, :: tensorflow::Input boxes, :: tensorflow::Input box_ind)
CropAndResizeGradBoxes (const :: tensorflow::Scope & scope, :: tensorflow::Input grads, :: tensorflow::Input image, :: tensorflow::Input boxes, :: tensorflow::Input box_ind, const CropAndResizeGradBoxes::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

Method (StringPiece x)

Yapılar

tensorflow:: ops:: CropAndResizeGradBoxes:: Öznitelikler

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

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamu işlevleri

CropAndResizeGradBoxes

 CropAndResizeGradBoxes(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input grads,
  ::tensorflow::Input image,
  ::tensorflow::Input boxes,
  ::tensorflow::Input box_ind
)

CropAndResizeGradBoxes

 CropAndResizeGradBoxes(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input grads,
  ::tensorflow::Input image,
  ::tensorflow::Input boxes,
  ::tensorflow::Input box_ind,
  const CropAndResizeGradBoxes::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

Yöntem

Attrs Method(
  StringPiece x
)