junrushao opened a new pull request, #668: URL: https://github.com/apache/tvm-ffi/pull/668
Architecture: - Normalize compact dtype spellings before the native parser applies canonical parsing rules. - Add reusable C++ classification and abbreviation helpers for reflected ABI consumers. Public Interfaces: - Add DTypeIsFloat, DTypeIsInt, DTypeIsBool, and DTypeAbbrev in the C++ API. - Add Python dtype predicates, validity checking, and named float8, float6, and float4 constants. UI/UX: - None. Behavioral Changes: - Accept compact i, u, f, bf, fp8, fp6, and fp4 spellings, including vector-lane suffixes. - Reject partial low-precision float variant matches consistently. Docs: - Add API docstrings and Doxygen comments for the new dtype helpers. Tests: - uv run --no-sync pytest -q tests/python/test_dtype.py - ./build_test/lib/tvm_ffi_tests --gtest_filter=*DType*:*DataType* Untested Edge Cases: - Parsing aliases for externally registered custom dtype codes. -- 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]
