tensorflow::ops::CropAndResizeGradImage

#include <image_ops.h>

Computes the gradient of the crop_and_resize op wrt the input image tensor.

Résumé

Arguments :

  • portée : un objet Scope
  • grads: A 4-D tensor of shape [num_boxes, crop_height, crop_width, depth] .
  • `boxes` : un tenseur 2D de forme [num_boxes, 4] . La i -ème ligne du tenseur spécifie les coordonnées d'une boîte dans l'image box_ind[i] et est exprimée en coordonnées normalisées [y1, x1, y2, x2] . Une coordonnée normalisée ` y est mappée sur la coordonnée image y * (image_height - 1) , de sorte que l'intervalle [0, 1] de la hauteur d'image normalisée est mappé sur `[0, image_height - 1]` en coordonnées de hauteur d'image. Nous autorisons `y1 > y2`, auquel cas l'extrait échantillonné est une version inversée verticalement de l'image originale. La dimension de largeur est traitée de manière similaire. Les coordonnées normalisées en dehors de l'intervalle [0, 1] sont autorisées ; dans ce cas, nous utilisons extrapolation_value pour extrapoler les valeurs de l'image d'entrée.
  • box_ind: A 1-D tensor of shape [num_boxes] with int32 values in [0, batch) . The value of box_ind[i] specifies the image that the i -th box refers to.
  • image_size: A 1-D tensor with value [batch, image_height, image_width, depth] containing the original image size. Both image_height and image_width need to be positive.

Attributs optionnels (voir Attrs ) :

  • method: A string specifying the interpolation method. Only 'bilinear' is supported for now.

Retours :

  • Output : A 4-D tensor of shape [batch, image_height, image_width, depth] .

Constructeurs et destructeurs

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)

attributs publics

operation
output

fonctions publiques

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

fonctions statiques publiques

Method (StringPiece x)

Structures

tensorflow:: ops:: CropAndResizeGradImage:: Attrs

Optional attribute setters for CropAndResizeGradImage .

attributs publics

opération

Operation operation

sortir

::tensorflow::Output output

fonctions publiques

Recadrer et redimensionner l'image du diplômé

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

Recadrer et redimensionner l'image du diplômé

 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
)

nœud

::tensorflow::Node * node() const 

opérateur::tensorflow::Entrée

 operator::tensorflow::Input() const 

opérateur::tensorflow::Sortie

 operator::tensorflow::Output() const 

fonctions statiques publiques

Méthode

Attrs Method(
  StringPiece x
)