aliran tensor:: operasi:: PangkasDanUbahUkuranGradImage

#include <image_ops.h>

Menghitung gradien crop_and_resize dengan tensor gambar masukan.

Ringkasan

Argumen:

  • ruang lingkup: Objek Lingkup
  • lulusan: Tensor bentuk 4-D [num_boxes, crop_height, crop_width, depth] .
  • kotak: Tensor bentuk 2D [num_boxes, 4] . Baris 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 .
  • image_size: Tensor 1-D dengan nilai [batch, image_height, image_width, depth] yang berisi ukuran gambar asli. image_height dan image_width keduanya harus 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] .

Konstruktor dan Destruktor

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)

Struktur

tensorflow:: ops:: CropAndResizeGradImage:: Attrs

Penyetel atribut opsional untuk CropAndResizeGradImage .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

PangkasDanUbahUkuranGradImage

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

PangkasDanUbahUkuranGradImage

 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::Masukan

 operator::tensorflow::Input() const 

operator::tensorflow::Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

metode

Attrs Method(
  StringPiece x
)