Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise an exception when extern function does not return Stmt #5964

Merged
merged 1 commit into from Jun 30, 2020
Merged

Raise an exception when extern function does not return Stmt #5964

merged 1 commit into from Jun 30, 2020

Conversation

kparzysz-quic
Copy link
Contributor

The function for tvm.te.extern should return either PrimExpr or Stmt, however there is no check if it actually does so. If it does not, the result may be a segmentation fault later on. Catch this case early on, so an informative message can be shown.

The function for tvm.te.extern should return either PrimExpr or Stmt,
however there is no check if it actually does so. If it does not, the
result may be a segmentation fault later on. Catch this case early on,
so an informative message can be shown.
@tqchen tqchen merged commit 44194d0 into apache:master Jun 30, 2020
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jun 30, 2020
…5964)

The function for tvm.te.extern should return either PrimExpr or Stmt,
however there is no check if it actually does so. If it does not, the
result may be a segmentation fault later on. Catch this case early on,
so an informative message can be shown.
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Jul 2, 2020
…5964)

The function for tvm.te.extern should return either PrimExpr or Stmt,
however there is no check if it actually does so. If it does not, the
result may be a segmentation fault later on. Catch this case early on,
so an informative message can be shown.
@kparzysz-quic kparzysz-quic deleted the extern branch June 22, 2022 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants