Skip to content

Questions about AvgPooling #5981

Closed
Closed
@guoshengCS

Description

@guoshengCS

It seems that AvgPooling gets the window without the padding cells, but when averaging the sum, the size should including the number of padding cells. The code here seems get the wrong size which not including the number of padding cells.

wstart = std::max(wstart, 0);

int poolSize = (hend - hstart) * (wend - wstart);

I have tested and checked the result to validate this.

It seems that the GPU code also has the same question, but I haven't validated it.

hstart = max(hstart, 0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions