tensorflow:: ops:: CropAndResizeGradImage

#include <image_ops.h>

入力画像テンソルに対する crop_and_resize 操作の勾配を計算します。

まとめ

議論:

  • スコープ:スコープオブジェクト
  • 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 box_ind[i]の値は、 i番目のボックスが参照する画像を指定します。
  • image_size: 元の画像サイズを含む値[batch, image_height, image_width, depth]を持つ1次元テンソル。image_heightとimage_height image_width正の値である必要があります。

オプション属性( Attrs参照):

  • method: 補間方法を指定する文字列。現時点では「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)

構造

tensorflow:: ops:: CropAndResizeGradImage:: Attrs

CropAndResizeGradImageのオプション属性設定子。

公開属性

手術

Operation operation

出力

::tensorflow::Output output

公的機能

卒業画像の切り抜きとサイズ変更

 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
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

方法

Attrs Method(
  StringPiece x
)