Ubospica opened a new pull request, #643: URL: https://github.com/apache/tvm-ffi/pull/643
## Summary - Add pickle reductions for `tvm_ffi.core.String` and `tvm_ffi.core.Bytes` so only the Python payload is serialized. - Ensure unpickled values drop the hidden `_tvm_ffi_cached_object` backing object. - Add regression coverage for cached FFI String/Bytes returned from `testing.echo`. ## Notes - This is a clean branch based on the latest `apache/main` and supersedes #642, which became dirty after main advanced. - `Bytes.__slots__` is intentionally unchanged because Python does not support non-empty `__slots__` on `bytes` subclasses. ## Test plan - `uv pip install --reinstall --verbose . && .venv/bin/pytest -vvs tests/python/test_string.py` - `PYTHONPATH=/raid/user_data/yixind/miniforge3/lib/python3.12/site-packages pre-commit run --files python/tvm_ffi/cython/string.pxi tests/python/test_string.py` -- 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]
