AnaRhisT94 opened a new issue #14880: Changing a Crop to Slice_axis for ONNX 
conversion
URL: https://github.com/apache/incubator-mxnet/issues/14880
 
 
   Hi, I'm trying to use the **slice_axis** (because Slice and Slice_like 
aren't supported by ONNX) instead of **crop**(it's also deprecated) because 
ONNX doesn't support Crop properly - and I don't want to change ONNX's  Crop 
function. but rather use **slice_axis** instead.
   When changing Crop to slice_axis with axis=1 on a pretrained model in the 
.json, I'm getting an error when trying to use that sliced node. More 
precisely, I feed two 128x80x60 shaped nodes to a elemwise_add node which takes 
as input same shaped 128x80x60 nodes and adds them together. Which works great 
with the Crop operation in the .json file, changing it to Slice operation 
properly (checked the dimensions - they match in the add operation) it gives an 
error.
   Getting this error:
   onnx.onnx_cpp2py_export.checker.ValidationError: Node (slice_axis) has input 
size 1 not in range [min=3, max=5].
   And then,
   ==> Context: Bad node spec: input: “ssh_m2_red_upsampling” output: 
“slice_axis” name: “slice_axis” op_type: “Slice” attribute { name: “axes” ints: 
1 type: INTS } attribute { name: “ends” ints: 128 type: INTS } attribute { 
name: “starts” ints: 0 type: INTS }
   
   Any ideas how to solve it?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to