Skip to content

Define the algorithm of calculating the effective padding for "same-upper" and "same-lower" option #326

@huningxin

Description

@huningxin

WebNN conv2d operation allows to set MLConv2dOptions.autoPad option to "same-upper" or "same-lower" of MLAutoPad enum.

The spec mentions:

With the "same-upper" option, the padding values are automatically computed such that the additional ending padding of the spatial input dimensions would allow all of the input values in the corresponding dimension to be filtered. The "same-lower" option is similar but padding is applied to the beginning padding of the spatial input dimensions instead of the ending one.

The spec should define the algorithm of how the padding values are automatically computed.

This issue was raised in Chromium CL review. Thanks @wacky6 for the feedback.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions