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

#include <nn_ops.h>

Thực hiện tổng hợp tối đa trên đầu vào.

Tóm lược

Tranh luận:

  • phạm vi: Một đối tượng Phạm vi
  • đầu vào: đầu vào 4-D để gộp chung.
  • ksize: Kích thước của cửa sổ cho mỗi kích thước của tensor đầu vào.
  • sải bước: Sải bước của cửa sổ trượt đối với mỗi kích thước của bộ căng đầu vào.
  • 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ự: [batch, in_height, in_width, in_channels]. Ngoài ra, định dạng có thể là "NCHW", thứ tự lưu trữ dữ liệu của: [batch, in_channels, in_height, in_width].

Lợi nhuận:

  • Output : Bộ căng đầu ra tổng hợp tối đa.

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

MaxPoolV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input ksize, :: tensorflow::Input strides, StringPiece padding)
MaxPoolV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input ksize, :: tensorflow::Input strides, StringPiece padding, const MaxPoolV2::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)

Cấu trúc

tensorflow :: ops :: MaxPoolV2 :: Attrs

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

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

MaxPoolV2

 MaxPoolV2(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input ksize,
  ::tensorflow::Input strides,
  StringPiece padding
)

MaxPoolV2

 MaxPoolV2(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input ksize,
  ::tensorflow::Input strides,
  StringPiece padding,
  const MaxPoolV2::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
)