# TVM FFI

**URL:** https://discuss.tvm.apache.org/c/tvm-ffi/15.md

[Latest](https://discuss.tvm.apache.org/latest.md) · [Categories](https://discuss.tvm.apache.org/categories.md)

---

## [About the TVM FFI category](https://discuss.tvm.apache.org/t/about-the-tvm-ffi-category/18565)

<div class="topic-metadata">

**Author:** [@tqchen](https://discuss.tvm.apache.org/u/tqchen)\
**Replies:** 0

</div>

---

## [import tvm error, when initialized module &#x27;tvm\_ffi&#x27;(most likely due to a circular import)](https://discuss.tvm.apache.org/t/import-tvm-error-when-initialized-module-x27-tvm-ffi-x27-most-likely-due-to-a-circular-import/18936)

<div class="topic-metadata">

**Author:** [@shujuliu818](https://discuss.tvm.apache.org/u/shujuliu818)\
**Replies:** 0\
**Last updated:** [February 27, 2026, 12:46am UTC](https://discuss.tvm.apache.org/t/import-tvm-error-when-initialized-module-x27-tvm-ffi-x27-most-likely-due-to-a-circular-import/18936 "2026-02-27T00:46:57Z")

</div>

hello: when i use python “import tvm” it’s some error: File “”, line 1, in import tvm; print(tvm.base.\_LIB) ^^^^^^^^^^ File “/home/ll/tvm/python/tvm/init.py”, line 24, in from tvm\_ffi import register\_object, register\_gl…

---

## [How to add a new device in tvm-0.22](https://discuss.tvm.apache.org/t/how-to-add-a-new-device-in-tvm-0-22/18771)

<div class="topic-metadata">

**Author:** [@zgh551](https://discuss.tvm.apache.org/u/zgh551)\
**Replies:** 1\
**Last updated:** [January 22, 2026, 7:13am UTC](https://discuss.tvm.apache.org/t/how-to-add-a-new-device-in-tvm-0-22/18771 "2026-01-22T07:13:18Z")

</div>

Hi, TVM Team: In the latest version of tvm, due to the upgrade of the tvm\_ffi project, is it now only possible to add new devices to the tvm\_ffi project? when call: tvm.runtime.device("new\_device", 0) it will call: tv…

---

## [按照官方文档操作，但是报错？关于tvm\_ffi](https://discuss.tvm.apache.org/t/tvm-ffi/18680)

<div class="topic-metadata">

**Author:** [@yinxiaoxi-dev](https://discuss.tvm.apache.org/u/yinxiaoxi-dev)\
**Replies:** 4\
**Last updated:** [October 9, 2025, 6:04pm UTC](https://discuss.tvm.apache.org/t/tvm-ffi/18680 "2025-10-09T18:04:15Z")

</div>

python -c “import tvm; print(tvm.file)” Traceback (most recent call last): File “”, line 1, in File “/workspaces/tvm/python/tvm/init.py”, line 24, in from tvm\_ffi import register\_object, register\_global\_func, get\_globa…
