-
Notifications
You must be signed in to change notification settings - Fork 6.8k
A question about Operator "crop" and "slice". #9885
Comments
Can you give the precise definition of |
@reminisce
For "slice", I don't see the argument for this "reference" symbol. |
What is the role of |
@reminisce Crop the 2nd and 3rd dim of input data, with the corresponding size of h_w or with width and height of the second input symbol, i.e., with one input, we need h_w to specify the crop height and width, otherwise the second input symbol’s size will be used. The role of "ref" is to show the target shape of the cropped_data. |
Are you referring to the definition here: https://turi.com/products/create/docs/generated/graphlab.mxnet.symbol.Crop.html? I don't think we are aligning with the doc on that website. It's looks to me that you can prepare the proper params of |
I just checked the code, there is indeed a |
@reminisce It seems both Crop and crop are deprecated in the documentation. So are you saying the documentation is a bit out-of-date? Maybe it can be fixed for avoiding confusion. |
I don't know why |
@reminisce For fixed-sized input, your way has no problem, but image we have various input size for both "data" and "ref", we cannot keep creating new symbols and modules, that would not be an efficient way. |
I too second that we need to keep Crop with a "crop_like shape reference" where zai is the shape reference symbol |
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.
Any ideas how to solve this? |
Hey @AnaRhisT94 sorry for delayed response. Did your problem get resolved? If not, can you give a minimum reproducible script for the same? |
In the document, it says "crop is deprecated. Use slice instead". But I think "slice" is not a complete alternative to "crop", because "crop" can use a "reference" symbol as an input, while "slice" can only use fixed parameters to crop. Sometimes, the input can have various size, we can not define everything in advance. In the future release, is "crop" going to be kept?
The text was updated successfully, but these errors were encountered: