The GitHub Actions job "mainline-only" on tvm-ffi.git/main has failed.
Run started by GitHub user tqchen (triggered by tqchen).

Head commit for run:
4108fd226e0048d0e5bfd53b7fc3434e67b03052 / Yixin Dong <[email protected]>
[FEAT] Expose Tensor data_ptr in Python (#679)

## Summary
- add `Tensor.data_ptr()` to return the address of the first tensor
element
- include the DLPack tensor's byte offset in the returned address
- add the Python type stub and tests using real NumPy arrays and sliced
views

This allows callers to access tensor memory directly without exporting
and parsing a DLPack capsule.

## Test plan
- [x] `uv run pytest tests/python/test_tensor.py -q` (8 passed, 3
skipped)
- [x] `uv run pytest tests/python -q` (2418 passed, 41 skipped, 2
expected failures)
- [x] `uv run pre-commit run --files python/tvm_ffi/cython/base.pxi
python/tvm_ffi/cython/tensor.pxi python/tvm_ffi/core.pyi
tests/python/test_tensor.py`

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

With regards,
GitHub Actions via GitBox


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

Reply via email to