tensorflow::ops::CropAndResizeGradBoxes

#include <image_ops.h>

คำนวณเกรเดียนต์ของตัวดำเนินการ crop_and_resize เทียบกับเทนเซอร์กล่องอินพุต

สรุป

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • grads: เทนเซอร์ 4 มิติที่มีรูปร่าง [num_boxes, crop_height, crop_width, depth]
  • รูปภาพ: เทนเซอร์ 4 มิติที่มีรูปร่าง [batch, image_height, image_width, depth] โดยทั้ง image_height และ image_width ต้องเป็นค่าบวก
  • กล่อง: เทนเซอร์ 2 มิติที่มีรูปร่าง [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: เทนเซอร์ 1 มิติ รูปร่าง [num_boxes] ที่มีค่า int32 ในช่วง [0, batch) ค่าของ box_ind[i] ระบุภาพที่กล่องที่ i อ้างถึง

คุณลักษณะเสริม (ดูที่ Attrs ):

  • method: สตริงที่ระบุวิธีการแทรกค่า ปัจจุบันรองรับเฉพาะ 'bilinear' เท่านั้น

การส่งคืนสินค้า:

  • Output : เทนเซอร์ 2 มิติที่มีรูปร่าง [num_boxes, 4]

ตัวสร้างและตัวทำลาย

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)

คุณลักษณะสาธารณะ

operation
output

หน้าที่สาธารณะ

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

ฟังก์ชันคงที่สาธารณะ

Method (StringPiece x)

โครงสร้าง

tensorflow::ops::CropAndResizeGradBoxes::Attrs

ตัวเลือกการตั้งค่าแอตทริบิวต์สำหรับ CropAndResizeGradBoxes

คุณลักษณะสาธารณะ

การดำเนินการ

Operation operation

เอาต์พุต

::tensorflow::Output output

หน้าที่สาธารณะ

กล่องเกรดเดอร์แบบตัดและปรับขนาด

 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
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const 

ฟังก์ชันคงที่สาธารณะ

วิธี

Attrs Method(
  StringPiece x
)