Spec-Zone.ru › TensorFlow C++ 1.15

tensorflow::ops::CropAndResizeGradImage

#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].
  • 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-й прямоугольник.
  • image_size: A 1-D tensor с значением [batch, image_height, image_width, depth] содержащим размер исходного изображения. И image_height и image_width должны быть положительными.

Optional attributes (see Attrs):

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

Returns:

  • Output: A 4-D tensor of shape [batch, image_height, image_width, depth].
Constructors and Destructors
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)
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::CropAndResizeGradImage::Attrs

Дополнительные параметры для CropAndResizeGradImage.

Public attributes

operation

Operation operation

output

::tensorflow::Output output

Public functions

CropAndResizeGradImage

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

CropAndResizeGradImage

 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
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

Метод

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-image

Spec-Zone.ru

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