텐서플로우:: ops:: CropAndResizeGradImage

#include <image_ops.h>

입력 이미지 텐서에 대한 crop_and_resize 연산의 기울기를 계산합니다.

요약

논거:

  • 범위: Scope 객체
  • grads: [num_boxes, crop_height, crop_width, depth] 형태의 4차원 텐서입니다.
  • boxes: [num_boxes, 4] 형태의 2차원 텐서입니다. 텐서의 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: [num_boxes] 형태의 1차원 텐서로, int32 값은 [0, batch) 범위에 있습니다. box_ind[i] 값은 i 번째 박스가 참조하는 이미지를 지정합니다.
  • image_size: 원본 이미지 크기를 포함하는 [batch, image_height, image_width, depth] 값을 가진 1차원 텐서입니다. image_height 와 image_width 모두 양수여야 합니다.

선택적 속성( Attrs 참조):

  • 메서드: 보간 방법을 지정하는 문자열입니다. 현재는 'bilinear'만 지원됩니다.

보고:

  • Output : [batch, image_height, image_width, depth] 형태의 4차원 텐서.

생성자와 소멸자

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)

공개 속성

operation
output

공공 기능

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

공개 정적 함수

Method (StringPiece x)

구조

텐서플로우:: ops:: CropAndResizeGradImage:: Attrs

CropAndResizeGradImage 에 대한 선택적 속성 설정기입니다.

공개 속성

작업

Operation operation

산출

::tensorflow::Output output

공공 기능

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
)

마디

::tensorflow::Node * node() const 

연산자::텐서플로우::입력

 operator::tensorflow::Input() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const 

공개 정적 함수

방법

Attrs Method(
  StringPiece x
)