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ünisatırıbox_ind[i]görüntüsündeki bir kutunun koordinatlarını belirtir ve normalleştirilmiş koordinatlar[y1, x1, y2, x2]ile belirtilir.ynormalleştirilmiş bir koordinat değeriy * (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çinextrapolation_valuekullanırız. - box_ind:
[0, batch)içindeki int32 değerlerine sahip[num_boxes]şeklindeki 1 boyutlu tensör.box_ind[i]değeri,ikutunun 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. Hemimage_heighthem deimage_widthpozitif olması gerekir.
İsteğe bağlı özellikler (bkz. Attrs ):
- yöntem: Enterpolasyon yöntemini belirten bir dize. Şimdilik yalnızca 'çift doğrusal' desteklenmektedir.
İade:
-
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 )