lixiaoquan commented on a change in pull request #5429:
URL: https://github.com/apache/incubator-tvm/pull/5429#discussion_r415196802



##########
File path: include/tvm/relay/op_attr_types.h
##########
@@ -81,10 +81,16 @@ using TOpIsStateful = bool;
  */
 using TNonComputational = bool;
 
+enum ShapeDependantKind {
+  kShapeDependantShape = 0,
+  kShapeDependantData = 1,
+  kShapeDependantBoth = 2,

Review comment:
       I checked #4312, and tried to use data.shape the same ways as 
_strided_slice_shape_func(), but I got this error from hybrid script parser
   ```
   ValueError: All indices are supposed to be constants
   ```
   it seems _strided_slice_shape_func only uses const index when accessing 
data.shape, but _reshape_shape_func uses variables as indices to access 
data_shape
   
   I'd appreciate it if you can give me some hint about 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:
us...@infra.apache.org


Reply via email to