tqchen opened a new pull request, #19640:
URL: https://github.com/apache/tvm/pull/19640
## Summary
Restore `buffer_dtype` as a top-level field on `PrinterConfig` (alongside
`int_dtype` and `float_dtype`). The tvmscript streamline refactor moved it into
`extra_config`, but `buffer_dtype` is a shared scalar-literal default rather
than a dialect-specific knob. Bringing it back to top-level keeps it
discoverable, type-checked at the C++ layer, and consistent with its sibling
scalar dtype fields.
## Files
- `include/tvm/script/printer/config.h` — restore `DataType buffer_dtype`
field + reflection registration.
- `src/script/printer/script_printer.cc` — restore the top-level
`"buffer_dtype"` string→DataType conversion in the `PrinterConfig` constructor.
- `src/tirx/script/printer/buffer.cc` — use `cfg->buffer_dtype` directly
instead of `GetExtraConfig<DataType>("tirx.buffer_dtype", ...)`.
- `python/tvm/runtime/script_printer.py` — re-add `buffer_dtype: str =
"float32"` field and kwarg.
--
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]