Open wzh99 opened 2 years ago
This may be the possible cause of this indexing error:
https://github.com/apache/tvm/blob/dfc8e95604afc8475970b8371d2a93d76b0bddf6/include/tvm/topi/transform.h#L746-L747
When begin
is empty, begin[0]
is an invalid indexing.
Thanks for the bug report. It seems empty stride is not likely to be any realistic usages. So I am curious if this bug is generated by a fuzzer that enumerates all possible attribute spaces in relay's operators?
@ganler Exactly. The bugs I have reported so far, and those I will report later, are generated by a fuzzer of Relay. Some of the bugs are related to real-world use cases, while others may not. We may prioritize bugs related to realistic usages.
@ganler Exactly. The bugs I have reported so far, and those I will report later, are generated by a fuzzer of Relay. Some of the bugs are related to real-world use cases, while others may not. We may prioritize bugs related to realistic usages.
Thanks for letting me know! That sounds very interesting!
Expected behavior
The following Relay source program should be successfully parsed:
strided_slice
directly returns a copy of%x
here becauseaxes
,begin
,end
, andstrides
are all empty.Actual behavior
Environment
macOS 12.4. Compiled using Clang 13.1.6 with LLVM support. TVM commit
df4f4c0b4
.Steps to reproduce