This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-ffi.git
The following commit(s) were added to refs/heads/main by this push:
new 38fc647 fix: Error message when numpy is missing (#332)
38fc647 is described below
commit 38fc6474d1bb203dea055864cec6ef53c43a6ca5
Author: Junru Shao <[email protected]>
AuthorDate: Thu Dec 11 14:29:02 2025 -0800
fix: Error message when numpy is missing (#332)
---
python/tvm_ffi/cython/dtype.pxi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/tvm_ffi/cython/dtype.pxi b/python/tvm_ffi/cython/dtype.pxi
index 3f3e460..3b8530a 100644
--- a/python/tvm_ffi/cython/dtype.pxi
+++ b/python/tvm_ffi/cython/dtype.pxi
@@ -252,5 +252,5 @@ if numpy is not None:
cdef DLDataType cdtype = NUMPY_DTYPE_TO_DL_DATA_TYPE[numpy_dtype]
return make_dtype_from_dl_data_type(cdtype)
else:
- def _convert_torch_dtype_to_ffi_dtype(torch_dtype):
+ def _convert_numpy_dtype_to_ffi_dtype(numpy_dtype):
raise ValueError("numpy not found")