Skip to content

Conversation

@khj809
Copy link
Contributor

@khj809 khj809 commented Jan 7, 2026

On Electron example app, there's intermittent error raised from tvm-ffi as below:

thread 'tokio-runtime-worker' (116479489) panicked at /Users/runner/.cargo/git/checkouts/tvm-runtime-rs-bb1fb69546d1a22f/d0edb6e/tvm-runtime/src/tensor_cache.rs:87:75:
called `Result::unwrap()` on an `Err` value: Traceback (most recent call last):

  File "src/ffi/dtype.cc", line 309, in DLDataType tvm::ffi::StringViewToDLDataType_(std::string_view)
ValueError: unknown dtype `float16`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

which is fixed by apache/tvm-ffi#387.

This PR updates tvm-runtime-rs to brekkylab/tvm-runtime-rs@fe81eb3, which applies the above fix.

@khj809 khj809 requested review from grf53 and jhlee525 January 7, 2026 07:58
@khj809 khj809 self-assigned this Jan 7, 2026
Base automatically changed from fix/update-examples to main January 8, 2026 06:36
@khj809
Copy link
Contributor Author

khj809 commented Jan 8, 2026

Waiting for apache/tvm-ffi#387 to be merged. I think it would be done shortly.

@khj809 khj809 merged commit 3eb0dd9 into main Jan 9, 2026
@khj809 khj809 deleted the fix/tvm-ffi-dtype-error branch January 9, 2026 01:42
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.

4 participants