Skip to content

Need clarify constraint of 'beginningPadding' and 'endingPadding' for pad operation in "reflection" and "symmetric" mode #377

@BruceDai

Description

@BruceDai

When I implemented pad operation for WebNN-Baseline webmachinelearning/webnn-baseline#47, I found there would be missing constraints of 'beginningPadding' and 'endingPadding' in "reflection" and "symmetric" mode, I propose to add constraints likes below table. @huningxin @wchao1115 @fdwr PTAL, thanks.

padding\mode reflection symmetric
beginningPadding beginningPadding[d] < input size of dimension d beginningPadding[d] <= input size of dimension d
endingPadding endingPadding[d] < input size of dimension d endingPadding[d] <= input size of dimension d

Reference:

  1. DML_PADDING_OPERATOR_DESC
  2. tf.mirrorPad

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