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

Clean up CPU kernel definition for opset 13 Pad #7867

Merged
merged 2 commits into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions onnxruntime/core/providers/cpu/tensor/pad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@ ONNX_CPU_OPERATOR_KERNEL(
.TypeConstraint(
"T",
BuildKernelDefConstraintsFromTypeList<Pad13Types>(),
BuildKernelDefConstraintsFromTypeList<EnabledPad13Types>())
.FixedTypeConstraintForHash(
"T",
BuildKernelDefConstraintsFromTypeList<Pad11Types>()),
BuildKernelDefConstraintsFromTypeList<EnabledPad13Types>()),
Pad);

// This is the general padding method to n-dimensionally do edge or reflection padding (based on the inputDelta values)
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/test/testdata/kernel_def_hashes/onnx.cpu.json
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@
],
[
"Pad ai.onnx CPUExecutionProvider",
9596174091174553032
12904240253005862936
],
[
"Pad ai.onnx CPUExecutionProvider",
Expand Down