dòng chảy :: hoạt động :: DepthwiseConv2dNativeBackpropInput

#include <nn_ops.h>

Tính toán độ dốc của tích chập theo chiều sâu đối với đầu vào.

Tóm lược

Tranh luận:

  • phạm vi: Một đối tượng Phạm vi
  • input_sizes: Một vectơ số nguyên đại diện cho hình dạng của input , dựa trên data_format . Ví dụ: nếu data_format là 'NHWC' thì input là tensor 4-D [batch, height, width, channels] .
  • filter: 4-D với shape [filter_height, filter_width, in_channels, depthwise_multiplier] .
  • out_backprop: 4-D với hình dạng dựa trên data_format . Ví dụ: nếu data_format là 'NHWC' thì out_backprop shape là [batch, out_height, out_width, out_channels] . Gradients wrt đầu ra của tích chập.
  • sải bước: Sải bước của cửa sổ trượt đối với mỗi chiều của đầu vào của tích chập.
  • padding: Loại thuật toán đệm sẽ sử dụng.

Các thuộc tính tùy chọn (xem Phần Attrs ):

  • data_format: Chỉ định định dạng dữ liệu của dữ liệu đầu vào và đầu ra. Với định dạng mặc định "NHWC", dữ liệu được lưu trữ theo thứ tự: [hàng loạt, chiều cao, chiều rộng, kênh]. Ngoài ra, định dạng có thể là "NCHW", thứ tự lưu trữ dữ liệu của: [lô, kênh, chiều cao, chiều rộng].
  • độ giãn: độ dài 1-D của chiều dài 4. Hệ số giãn nở cho mỗi kích thước input . Nếu được đặt thành k> 1, sẽ có k-1 ô bị bỏ qua giữa mỗi phần tử bộ lọc trên thứ nguyên đó. Thứ tự thứ nguyên được xác định bởi giá trị của data_format , xem chi tiết ở trên. Độ loãng trong lô và kích thước chiều sâu phải bằng 1.

Lợi nhuận:

  • Output : 4-D với hình dạng theo data_format . Ví dụ: nếu data_format là 'NHWC', thì hình dạng đầu ra là [batch, in_height, in_width, in_channels] . Gradient wrt đầu vào của tích chập.

Người xây dựng và Người phá hủy

DepthwiseConv2dNativeBackpropInput (const :: tensorflow::Scope & scope, :: tensorflow::Input input_sizes, :: tensorflow::Input filter, :: tensorflow::Input out_backprop, const gtl::ArraySlice< int > & strides, StringPiece padding)
DepthwiseConv2dNativeBackpropInput (const :: tensorflow::Scope & scope, :: tensorflow::Input input_sizes, :: tensorflow::Input filter, :: tensorflow::Input out_backprop, const gtl::ArraySlice< int > & strides, StringPiece padding, const DepthwiseConv2dNativeBackpropInput::Attrs & attrs)

Thuộc tính công khai

operation
output

Chức năng công cộng

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

Các chức năng tĩnh công khai

DataFormat (StringPiece x)
Dilations (const gtl::ArraySlice< int > & x)

Cấu trúc

tensorflow :: ops :: DepthwiseConv2dNativeBackpropInput :: Attrs

Bộ thiết lập thuộc tính tùy chọn cho DepthwiseConv2dNativeBackpropInput .

Thuộc tính công khai

hoạt động

Operation operation

đầu ra

::tensorflow::Output output

Chức năng công cộng

DepthwiseConv2dNativeBackpropInput

 DepthwiseConv2dNativeBackpropInput(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_sizes,
  ::tensorflow::Input filter,
  ::tensorflow::Input out_backprop,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding
)

DepthwiseConv2dNativeBackpropInput

 DepthwiseConv2dNativeBackpropInput(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_sizes,
  ::tensorflow::Input filter,
  ::tensorflow::Input out_backprop,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding,
  const DepthwiseConv2dNativeBackpropInput::Attrs & attrs
)

nút

::tensorflow::Node * node() const 

toán tử :: tensorflow :: Đầu vào

 operator::tensorflow::Input() const 

toán tử :: tensorflow :: Đầu ra

 operator::tensorflow::Output() const 

Các chức năng tĩnh công khai

DataFormat

Attrs DataFormat(
  StringPiece x
)

Pha loãng

Attrs Dilations(
  const gtl::ArraySlice< int > & x
)