Spec-Zone.ru › TensorFlow C++ 1.15

tensorflow::ops::CropAndResizeGradBoxes

#include <image_ops.h>

Вычисляет градиент операции crop_and_resize относительно тензора входных координат ячеек.

Summary

Arguments:

  • scope: An object Scope
  • grads: A 4-D tensor of shape [num_boxes, crop_height, crop_width, depth].
  • image: A 4-D tensor of shape [batch, image_height, image_width, depth]. Both image_height and image_width need to be positive.
  • boxes: A 2-D tensor of shape [num_boxes, 4]. The i-я строка тензора задаёт координаты прямоугольника в изображении box_ind[i] и задаётся в нормализованных координатах [y1, x1, y2, x2]. Значение нормализованной координаты y отображается на координату изображения в y * (image_height - 1), поэтому интервал [0, 1] нормализованной высоты изображения отображается в координатах высоты изображения как `[0, image_height - 1]`. Мы допускаем y1 > y2, в этом случае взятая область является перевернутой вверх ногами копией исходного изображения. Размеры по ширине обрабатываются аналогично. Допускаются нормализованные координаты, выходящие за пределы диапазона [0, 1], в этом случае мы используем extrapolation_value для экстраполяции значений входного изображения.
  • box_ind: A 1-D tensor of shape [num_boxes] с целочисленными значениями типа int32 в [0, batch). Значение box_ind[i] указывает на изображение, к которому относится i-я ячейка.

Optional attributes (see Attrs):

  • method: A string specifying the interpolation method. Currently only 'bilinear' is supported.

Returns:

  • Output: A 2-D tensor of shape [num_boxes, 4].
Constructors and Destructors
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)
Public attributes
operation
Operation
output
::tensorflow::Output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
Method(StringPiece x)
Attrs
Structs
tensorflow::ops::CropAndResizeGradBoxes::Attrs

Optional attribute setters for CropAndResizeGradBoxes.

Public attributes

operation

Operation operation

output

::tensorflow::Output output

Public functions

CropAndResizeGradBoxes

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

CropAndResizeGradBoxes

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

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

Method

Attrs Method(
  StringPiece x
)

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/crop-and-resize-grad-boxes

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API