The GitHub Actions job "CI" on tvm-ffi.git/error-api has failed.
Run started by GitHub user tqchen (triggered by tqchen).

Head commit for run:
df73c4a31a974adb7ae68432a57e23361dc31f38 / tqchen <[email protected]>
[C-API] TVMFFIErrorSetRaisedFromCStrParts

This PR introduces a new C API TVMFFIErrorSetRaisedFromCStrParts.

Background: when DSL compilers report errors, sometimes there are common
parts that appears multiple times, such as function signature.

For example, the following are possible error messages from a DSL.

- Argument #1 mismatch in `matmul(x: Tensor, y: Tensor)`, dtype mismatch
- Argument #2 mismatch in `matmul(x: Tensor, y: Tensor)`, shape[0] mismatch

While we can store each message as const string and pass them
to `TVMFFIErrorSetRaisedFromCStr`. There are quite a bit of duplication here.

This API allows us to store the error messages in parts, so parts
like "mismatch in `matmul(x: Tensor, y: Tensor)`,"  get reused across
multiple error messages. Because DSLs usually have minimal runtime, having
a minimal helper C API would simplify the possible overhead of compiler
construction side.

Report URL: https://github.com/apache/tvm-ffi/actions/runs/18466981689

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to