You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/05/05 17:14:22 UTC

[GitHub] [incubator-mxnet] AnaRhisT94 commented on issue #9885: A question about Operator "crop" and "slice".

AnaRhisT94 commented on issue #9885: A question about Operator "crop" and "slice".
URL: https://github.com/apache/incubator-mxnet/issues/9885#issuecomment-489445260
 
 
   Hi, I'm trying to use the slice instead of crop because ONNX doesn't support Crop properly - and I don't want to change ONNX's function. but rather use Slice 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 a 128x80x60 shaped node to a elemwise_add node which takes as input same 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].
   Also:
   > ==> 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 this?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services