-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TIR][RPC] Allow RPC calls to compiled PrimFuncs with no arguments (#…
…17098) The `PackedFunc` interface has arguments `int num_args` and `TVMValue* args`, which contain the number of arguments and a pointer to the array of arguments. Prior to this commit, when implementing the `PackedFunc` interface for TIR `PrimFunc`s, the `MakePackedAPI` pass would always assert that the `args` pointer was not null. However, the `args` pointer is allowed to be null if `num_args` is zero. For example, this occurs when calling an RPC function with no arguments. This commit updates the `MakePackedAPI` transform to only assert that `args` is non-null when `num_args` is greater than zero.
- Loading branch information
1 parent
675a023
commit f6fe2aa
Showing
3 changed files
with
99 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters