SIGN IN SIGN UP

[rocm-libraries] ROCm/rocm-libraries#6807 (commit ddda8ac)

[CK_TILE] Add save_matrix_txt() and extract HostTensor I/O to free functions (#6807)

## Summary
- Extract `loadtxt`, `savetxt`, and `save_matrix_txt` from `HostTensor`
member functions into standalone free functions in `host_tensor_io.hpp`
(Single Responsibility Principle)
- Add `save_matrix_txt()` for writing 2D tensors to space-separated text
files with configurable output limit (default 256x256, pass 0 to dump
all)
- Supports float, int, and int8_t output formats via a `dtype` parameter
- Validate dtype early and throw on unsupported values in all three
functions
- Update callers in `15_fused_moe/main.cpp` to use free function syntax
A
Aviral Goel committed
0df3523ef115f1d9ef134a884369ab2cb6b18806
Parent: 66d6714
Committed by GitHub <noreply@github.com> on 5/26/2026, 3:07:18 PM