You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we call memref.shape(), it will cause a segfault but the generated IR is correct. Niansong has documented this issue in this.
Now, we concluded that when opt-level = 0,1,2, IR with memref.shape can execute correctly. On the other hand, when opt-level = 0,1, there will be some numerical errors in different types of calculation.
Solution
As the above, we now set opt-level = 2 as default.
Describe the bug
When we call
memref.shape()
, it will cause a segfault but the generated IR is correct. Niansong has documented this issue in this.Now, we concluded that when
opt-level = 0,1,2
, IR withmemref.shape
can execute correctly. On the other hand, whenopt-level = 0,1
, there will be some numerical errors in different types of calculation.Solution
As the above, we now set
opt-level = 2
as default.Examples
memref.shape()
stack trace
numerical error
when
opt-level=0
:The text was updated successfully, but these errors were encountered: