htwaijry / npy4th

Numpy format for Torch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npy4th for loading npy with dtype other than float32

zhoubolei opened this issue · comments

Hi,
It seems that npy4th can only load npy format with dtype as float32. When I tried to load a npy with dtype as float16, it only returns the full name of the file, rather than any array content inside the file.

Can it be fixed? Thanks.

Hi there,

To my knowledge, torch doesn't support half-precision floats, so if you would want to load it, you would have to get it converted into float32 anyways.