tensor akışı:: işlem:: CropAndResizeGradImage

#include <image_ops.h>

Crop_and_resize işleminin giriş görüntüsü 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] .
  • 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) konumundaki 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.
  • image_size: Orijinal görüntü boyutunu içeren [batch, image_height, image_width, depth] değerine sahip 1 boyutlu tensör. Hem image_height hem de image_width pozitif olması gerekir.

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

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

İadeler:

  • Output : Şekil [batch, image_height, image_width, depth] şeklinde 4 boyutlu tensör.

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

CropAndResizeGradImage (const :: tensorflow::Scope & scope, :: tensorflow::Input grads, :: tensorflow::Input boxes, :: tensorflow::Input box_ind, :: tensorflow::Input image_size, DataType T)
CropAndResizeGradImage (const :: tensorflow::Scope & scope, :: tensorflow::Input grads, :: tensorflow::Input boxes, :: tensorflow::Input box_ind, :: tensorflow::Input image_size, DataType T, const CropAndResizeGradImage::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:: CropAndResizeGradImage:: Öznitelikler

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

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamu işlevleri

CropAndResizeGradImage

 CropAndResizeGradImage(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input grads,
  ::tensorflow::Input boxes,
  ::tensorflow::Input box_ind,
  ::tensorflow::Input image_size,
  DataType T
)

CropAndResizeGradImage

 CropAndResizeGradImage(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input grads,
  ::tensorflow::Input boxes,
  ::tensorflow::Input box_ind,
  ::tensorflow::Input image_size,
  DataType T,
  const CropAndResizeGradImage::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
)