Numpy’s fromfile()/tofile() make me smile — no typing or byte order metadata, they just write/read the raw bytes. A joyful API! I wish PyTorch had them natively on tensors, so I wasn’t doing so many tensor.cpu().numpy() operations.
NumPy’s Simple File I/O API and PyTorch Tensor Limitations
By
–
Leave a Reply