aliran tensor:: operasi:: PangkasDanResizeGradBoxes

#include <image_ops.h>

Menghitung gradien crop_and_resize dengan tensor kotak masukan.

Ringkasan

Argumen:

  • ruang lingkup: Objek Lingkup
  • lulusan: Tensor bentuk 4-D [num_boxes, crop_height, crop_width, depth] .
  • gambar: Tensor bentuk 4-D [batch, image_height, image_width, depth] . image_height dan image_width keduanya harus positif.
  • kotak: Tensor bentuk 2D [num_boxes, 4] . Baris ke i i dari tensor menentukan koordinat kotak pada gambar box_ind[i] dan ditentukan dalam koordinat yang dinormalisasi [y1, x1, y2, x2] . Nilai koordinat ternormalisasi y dipetakan ke koordinat gambar di y * (image_height - 1) , sehingga interval [0, 1] dari tinggi gambar yang dinormalisasi dipetakan ke `[0, image_height - 1] dalam koordinat tinggi gambar. Kami mengizinkan y1 > y2, dalam hal ini pemotongan sampel adalah versi gambar asli yang dibalik ke atas dan ke bawah. Dimensi lebar diperlakukan serupa. Koordinat yang dinormalisasi di luar rentang [0, 1] diperbolehkan, dalam hal ini kita menggunakan extrapolation_value untuk mengekstrapolasi nilai gambar masukan.
  • box_ind: Tensor bentuk 1-D [num_boxes] dengan nilai int32 di [0, batch) . Nilai box_ind[i] menentukan gambar yang dirujuk oleh kotak i .

Atribut opsional (lihat Attrs ):

  • metode: Sebuah string yang menentukan metode interpolasi. Hanya 'bilinear' yang didukung untuk saat ini.

Pengembalian:

  • Output : Tensor bentuk 2D [num_boxes, 4] .

Konstruktor dan Destruktor

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)

Atribut publik

operation
output

Fungsi publik

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Fungsi statis publik

Method (StringPiece x)

Struktur

tensorflow:: ops:: CropAndResizeGradBoxes:: Attrs

Penyetel atribut opsional untuk CropAndResizeGradBoxes .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

PangkasDanResizeGradBoxes

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

PangkasDanResizeGradBoxes

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

simpul

::tensorflow::Node * node() const 

operator::tensorflow::Masukan

 operator::tensorflow::Input() const 

operator::tensorflow::Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

metode

Attrs Method(
  StringPiece x
)