learning-chip commented on issue #8413:
URL: https://github.com/apache/tvm/issues/8413#issuecomment-875354085


   Should `tvmsp.CSRPlaceholderOp` be defined as a subclass of 
`object_generic.ObjectTypes`?
   
   The current relationship between those classes:
   ```python
   from tvm.runtime import object_generic
   
   test_spvar = tvmsp.placeholder(shape=(3, 3), nonzeros=6)  # type is 
tvm.contrib.sparse.CSRPlaceholderOp
   isinstance(test_spvar, object_generic.ObjectTypes)  # False
   issubclass(tvmsp.CSRPlaceholderOp, object_generic.ObjectTypes)  # False
   
   test_var = te.placeholder((2, 3))  # type is tvm.te.tensor.Tensor
   isinstance(test_var, object_generic.ObjectTypes)  # true
   issubclass(te.tensor.Tensor, object_generic.ObjectTypes)  # true
   ```


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