masahi commented on a change in pull request #9475:
URL: https://github.com/apache/tvm/pull/9475#discussion_r748716347



##########
File path: src/relay/op/image/resize.cc
##########
@@ -215,6 +225,8 @@ bool Resize3DRel(const Array<Type>& types, int num_inputs, 
const Attrs& attrs,
 
   const Resize3DAttrs* param = attrs.as<Resize3DAttrs>();
   ICHECK(param != nullptr);
+  ICHECK(param->size.size() == 3);
+  ICHECK(param->roi.size() == 10);

Review comment:
       Why 10 here? Similarly, where do 6 or 8 for 1D/2D come from? Doesn't 
onnx doc say this number is `rank x 2`? 
https://github.com/onnx/onnx/blob/master/docs/Operators.md#Resize You also use 
only 2/4/6 of rois in topi functions for 1D/2D/3D. 




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to