Repair a verified behavior in xilinx/mlir-aie.
Repair a verified behavior in xilinx/mlir-aie.: a task in OriGent-SFT-Data (Harbor dataset). The host-runtime tensor conversion path mishandles bfloat16 data. When a tensor whose dtype is ml dtypes.bfloat16 is converted with Tensor.to torch(), the implementation first converts its values to NumPy…
The task
The host-runtime tensor conversion path mishandles bfloat16 data. When a tensor whose dtype is ml_dtypes.bfloat16 is converted with Tensor.to_torch(), the implementation first converts its values to NumPy float16. The returned torch.Tensor therefore has dtype torch.float16 instead of torch.bfloat16, and bfloat16…
Part of henryen/OriGent-SFT-Data.