Skip to content

AverageUnpooling layer for PyTorch (Proposal) #19805

@revanurambareesh

Description

@revanurambareesh

🚀 Feature

PyTorch supports MaxPooling, AveragePooling layers and also supports MaxUnpooling layer. However AverageUnpooling layer is currently not supported in PyTorch.

Motivation

As a researcher I find that having AverageUnpooling layer as part of PyTorch will be very useful for following reasons:

  1. Common Use-case: CNN autoencoder with average pooling. Other use-cases include image reconstruction.
  2. The average unpooling layer is also used (although not as extensively as MaxUnpooling) in research and I strongly feel that this layer should exist in PyTorch.
  3. This will also help address average unpooling queries, such as one posted here in discuss.pytorch.org

Pitch

Implementing AverageUnpooling layer similar to https://github.com/HyeonwooNoh/caffe/blob/master/src/caffe/layers/unpooling_layer.cpp

EDIT: PyTorch's interpolation suits my requirements. Hence closed the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA request for a proper, new feature.module: nnRelated to torch.nntriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions