tensorflow :: ops :: CropAndResizeGradImage
#include <image_ops.h>
Menghitung gradien dari crop_and_resize op wrt tensor gambar masukan.
Ringkasan
Argumen:
- scope: Objek Scope
- lulusan: Tensor 4-D bentuk
[num_boxes, crop_height, crop_width, depth]
. - kotak: Tensor bentuk 2-D
[num_boxes, 4]
. Baris ke-i
tensor menentukan koordinat kotak pada gambarbox_ind[i]
dan ditentukan dalam koordinat normal[y1, x1, y2, x2]
. Nilai koordinaty
dinormalisasi dipetakan ke koordinat gambar paday * (image_height - 1)
, sehingga interval[0, 1]
dari tinggi image yang dinormalisasi dipetakan ke `[0, image_height - 1] di koordinat image height. Kami mengizinkan y1> y2, dalam hal ini potongan sampel adalah versi terbalik dari gambar asli. Dimensi lebar diperlakukan serupa. Koordinat yang dinormalisasi di luar rentang[0, 1]
diperbolehkan, dalam hal ini kami menggunakanextrapolation_value
untuk mengekstrapolasi nilai gambar masukan. - box_ind: Tensor 1-D bentuk
[num_boxes]
dengan nilai int32 dalam[0, batch)
. Nilaibox_ind[i]
menentukan gambar yang dirujuk oleh kotak ke-i
. - image_size: Tensor 1-D dengan nilai
[batch, image_height, image_width, depth]
berisi ukuran gambar asli. Baikimage_height
danimage_width
harus bernilai positif.
Atribut opsional (lihat Attrs
):
- metode: Sebuah string yang menentukan metode interpolasi. Hanya 'bilinear' yang didukung untuk saat ini.
Pengembalian:
-
Output
: Tensor bentuk 4-D[batch, image_height, image_width, depth]
.
Pembuat dan Penghancur | |
---|---|
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) |
Atribut publik | |
---|---|
operation | |
output |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fungsi statis publik | |
---|---|
Method (StringPiece x) |
Structs | |
---|---|
tensorflow :: ops :: CropAndResizeGradImage :: Attrs | Penyetel atribut opsional untuk CropAndResizeGradImage . |
Atribut publik
operasi
Operation operation
keluaran
::tensorflow::Output output
Fungsi publik
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 )
simpul
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
metode
Attrs Method( StringPiece x )