Skip to content

Reflect padding output seems incorrect when padding size larger than input dimension #8265

Description

Describe the bug
Reflect padding output seems incorrect when padding size larger than input dimension

Urgency
N/A

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
  • ONNX Runtime installed from (source or binary): binary
  • ONNX Runtime version: 1.8.0
  • Python version: 3.6.9

To Reproduce
test_pad.zip

np.set_printoptions(threshold=sys.maxsize)
sess = rt.InferenceSession("test_pad.onnx")
input_name = sess.get_inputs()[0].name
X = np.arange(3*3).reshape(1, 1, 1, 3, 3).astype(np.float32)
pred_onx = sess.run(None, {input_name: X})[0]
print("onnxruntime:")
print(pred_onx)

Expected behavior
Not know the ground truth, but the output should at least symmetric, also should not a lot of 0s there.

Screenshots
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions