Spec-Zone.ru › TensorFlow C++ 2.3

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 и image_width должны быть положительными.
  • boxes: A 2-D tensor of shape [num_boxes, 4]. Строка 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: Строка, определяющая метод интерполяции. Только 'bilinear' поддерживается на данный момент.

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

Дополнительные атрибуты для 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/r2.3/api_docs/cc/class/tensorflow/ops/crop-and-resize-grad-boxes

Spec-Zone.ru

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