Ubospica opened a new pull request, #679: URL: https://github.com/apache/tvm-ffi/pull/679
## Summary - add `tvm_ffi.from_bytes` to create an owned CPU tensor from contiguous raw bytes - add `Tensor.tobytes()` for direct byte copies from contiguous CPU tensor storage - validate shapes, byte sizes, devices, layouts, and packed data types without requiring an external DLPack producer ## Test plan - [x] `uv run pytest -q tests/python` - [x] `cmake . -B build_test -DTVM_FFI_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug && cmake --build build_test --parallel --config Debug --target tvm_ffi_tests && ctest -V -C Debug --test-dir build_test --output-on-failure` - [x] `uv run pre-commit run --files <changed files>` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
