Conversation
628d371 to
4e5a34d
Compare
|
@askhade Could you check whether I am going towards the right direction with this PR? |
|
DCO is not signed for this PR. If you only have a single commit then it is easy to fix it... Just follow the directions here: In future adding -s option to git commit adds sign off for that commit. example: |
|
Few more comments:
The script can be found here: https://github.com/onnx/onnx/blob/main/onnx/backend/test/cmd_tools.py#L90
|
1498202 to
462b7fd
Compare
4d2ecb0 to
2b21eec
Compare
2b21eec to
16fd709
Compare
|
fix DCO |
d7644bc to
b0878cb
Compare
|
microsoft/onnxruntime#12311 is now ready and implements Col2Im as contrib op on ORT |
cabdaba to
4cc3592
Compare
|
|
||
| std::vector<int64_t> pads = {}; | ||
| if (getRepeatedAttribute(ctx, "pads", pads)) { | ||
| if ((pads.size() != 0) && (pads.size() != n_input_dims * 2)) { |
There was a problem hiding this comment.
Suggest replacing these 3 lines with
if (pad.size() % 2)
fail_shape_inference("Attribute pads must have an even size");
unifyDim (n_input_dims, pads.size() / 2);|
@askhade Could you dismiss your review? All comments were addressed back in the day, but I have no permission to dismiss nor request another review. Feel free to give it another go on the review too |
gentle ping |
Signed-off-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
Signed-off-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
Signed-off-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
Signed-off-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
Signed-off-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
Signed-off-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
Signed-off-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
Signed-off-by: Thiago Crepaldi <thiago.crepaldi@microsoft.com>
Description
Introduces an operator Col2Im() that rearranges input tensor in blocks. Same behavior as https://pytorch.org/cppdocs/api/function_namespaceat_1a979fbf85d8c7362d60d766bbf1639f10.html
Fixes #4106
Motivation and Context
microsoft/onnxruntime#12311 ORT implemented the spec proposed here for Col2Im with n-dimensional support as a contrib op.