Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Int support for functional.avg/maxpool #6174

Merged
merged 2 commits into from
Sep 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 12 additions & 12 deletions oneflow/core/functional/functional_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -605,22 +605,22 @@

- name: "max_pool1d"
signature:
"TensorTuple (Tensor x, String data_format=\"channels_first\", Int32List padding,
Int32List kernel_size, Int32List stride, Int32List dilation,
"TensorTuple (Tensor x, String data_format=\"channels_first\", Int32List[1] padding,
Int32List[1] kernel_size, Int32List[1] stride, Int32List[1] dilation,
Bool return_indices=True, Bool ceil_mode=False) => Maxpool1D"
bind_python: True

- name: "max_pool2d"
signature:
"TensorTuple (Tensor x, String data_format=\"channels_first\", Int32List padding,
Int32List kernel_size, Int32List stride, Int32List dilation,
"TensorTuple (Tensor x, String data_format=\"channels_first\", Int32List[2] padding,
Int32List[2] kernel_size, Int32List[2] stride, Int32List[2] dilation,
Bool return_indices=True, Bool ceil_mode=False) => Maxpool2D"
bind_python: True

- name: "max_pool3d"
signature:
"TensorTuple (Tensor x, String data_format=\"channels_first\", Int32List padding,
Int32List kernel_size, Int32List stride, Int32List dilation,
"TensorTuple (Tensor x, String data_format=\"channels_first\", Int32List[3] padding,
Int32List[3] kernel_size, Int32List[3] stride, Int32List[3] dilation,
Bool return_indices=True, Bool ceil_mode=False) => Maxpool3D"
bind_python: True

Expand Down Expand Up @@ -968,22 +968,22 @@

- name: "avg_pool1d"
signature:
"Tensor (Tensor x, String data_format=\"channels_first\", Int32List padding,
Int32List kernel_size, Int32List stride, Bool ceil_mode=False, Bool count_include_pad=True,
"Tensor (Tensor x, String data_format=\"channels_first\", Int32List[1] padding,
Int32List[1] kernel_size, Int32List[1] stride, Bool ceil_mode=False, Bool count_include_pad=True,
Int64 divisor_override=0) => Avgpool1D"
bind_python: True

- name: "avg_pool2d"
signature:
"Tensor (Tensor x, String data_format=\"channels_first\", Int32List padding,
Int32List kernel_size, Int32List stride, Bool ceil_mode=False, Bool count_include_pad=True,
"Tensor (Tensor x, String data_format=\"channels_first\", Int32List[2] padding,
Int32List[2] kernel_size, Int32List[2] stride, Bool ceil_mode=False, Bool count_include_pad=True,
Int64 divisor_override=0) => Avgpool2D"
bind_python: True

- name: "avg_pool3d"
signature:
"Tensor (Tensor x, String data_format=\"channels_first\", Int32List padding,
Int32List kernel_size, Int32List stride, Bool ceil_mode=False, Bool count_include_pad=True,
"Tensor (Tensor x, String data_format=\"channels_first\", Int32List[3] padding,
Int32List[3] kernel_size, Int32List[3] stride, Bool ceil_mode=False, Bool count_include_pad=True,
Int64 divisor_override=0) => Avgpool3D"
bind_python: True

Expand Down