You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/09/10 07:48:31 UTC
[GitHub] [tvm] syang-ng opened a new issue #8979: [Bug] Functions will crash when receiving NULL object
syang-ng opened a new issue #8979:
URL: https://github.com/apache/tvm/issues/8979
This issue is related to the problem mentioned in [discussion](https://discuss.tvm.apache.org/t/operators-will-crash-when-receiving-null-object/10988). Besides operators, I also found other TIR related functions will crash when receiving NULL object.
To enhance the robustness of TVM, I log all these functions as a test case. I hope it can help TVM to fix this series of problems.
```python
import tvm
# tir.analysis
tvm.tir.analysis.calculate_workspace_bytes(None, None)
tvm.tir.analysis.detect_buffer_access_lca(None)
tvm.tir.analysis.get_block_access_region(None, None)
tvm.tir.analysis.get_block_read_write_region(None, None)
tvm.tir.analysis.verify_gpu_code(None, None)
tvm.tir.analysis.verify_memory(None)
tvm.tir.analysis.verify_ssa(None)
tvm.tir.analysis.BufferRegion(None, None)
# tir.expr
tvm.tir.expr.BufferLoad(None, None, None)
tvm.tir.expr.Call(None, None, None, None)
tvm.tir.expr.ProducerLoad(None, None, None)
# tir.generic
tvm.tir.generic.add(None, None, None)
tvm.tir.generic.cast(None, None, None)
tvm.tir.generic.divide(None, None, None)
tvm.tir.generic.floordiv(None, None, None)
tvm.tir.generic.multiply(None, None, None)
tvm.tir.generic.subtract(None, None, None)
# tir.op
tvm.tir.op.abs(None, None)
tvm.tir.op.ceil(None, None)
tvm.tir.op.clz(None)
tvm.tir.op.div(None, None, None)
tvm.tir.op.floor(None, None)
tvm.tir.op.floordiv(None, None, None)
tvm.tir.op.floormod(None, None, None)
tvm.tir.op.if_then_else(None, None, None, None)
tvm.tir.op.indexdiv(None, None, None)
tvm.tir.op.indexmod(None, None, None)
tvm.tir.op.isfinite(None, None)
tvm.tir.op.isinf(None, None)
tvm.tir.op.isnan(None, None)
tvm.tir.op.nearbyint(None, None)
tvm.tir.op.power(None, None, None)
tvm.tir.op.q_multiply_shift(None, None, None, None)
tvm.tir.op.reducer(None, None, None, None)
tvm.tir.op.round(None, None)
tvm.tir.op.trunc(None, None)
tvm.tir.op.truncdiv(None, None, None)
tvm.tir.op.truncmod(None, None, None)
tvm.tir.op.Call(None, None, None, None)
# tir.stmt_functor
tvm.tir.stmt_functor.ir_transform(None, None, None, None)
tvm.tir.stmt_functor.post_order_visit(None, None)
tvm.tir.stmt_functor.substitute(None, None)
tvm.tir.stmt.Allocate(None, None, None, None, None, None)
tvm.tir.stmt.BlockRealize(None, None, None, None)
tvm.tir.stmt.BufferRegion(None, None)
tvm.tir.stmt.MatchBufferRegion(None, None)
```
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] junrushao1994 commented on issue #8979: [Bug] Functions will crash when receiving NULL object
Posted by GitBox <gi...@apache.org>.
junrushao1994 commented on issue #8979:
URL: https://github.com/apache/tvm/issues/8979#issuecomment-917072138
Yep. I think TVM generally doesn't treat nullptr really seriously until we have `tvm::runtime::Optional` and "NOTNULLABLE" macros
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] ganler commented on issue #8979: [Bug] Functions will crash when receiving NULL object
Posted by GitBox <gi...@apache.org>.
ganler commented on issue #8979:
URL: https://github.com/apache/tvm/issues/8979#issuecomment-922509741
> @ganler @junrushao1994 can we close this as dupe of https://github.com/apache/tvm/issues/5318 then?
Yes, we can.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] syang-ng closed issue #8979: [Bug] Functions will crash when receiving NULL object
Posted by GitBox <gi...@apache.org>.
syang-ng closed issue #8979:
URL: https://github.com/apache/tvm/issues/8979
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] areusch commented on issue #8979: [Bug] Functions will crash when receiving NULL object
Posted by GitBox <gi...@apache.org>.
areusch commented on issue #8979:
URL: https://github.com/apache/tvm/issues/8979#issuecomment-922508052
@ganler @junrushao1994 can we close this as dupe of https://github.com/apache/tvm/issues/5318 then?
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org