You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was very convenient to use but i had to patch it to read float16.
float16 is not supported by js, but is supported by webgl. So this allow to fetch the data as an opaque manner, the shape remains the same, and the result is anyway typed with dtype==='float16'.
I also use some wrapper to read float16 values in js, but i think it is not really needed at this stage.
Anyway, here is setup.
import _npyjs from 'npyjs';
const npyjs = new _npyjs();
// Supports float16 as uint16
npyjs.dtypes['<f2'] = {
name: 'float16',
size: 16,
arrayConstructor: Uint16Array,
};
Tell me if you prefer to have a PR.
Regards,
The text was updated successfully, but these errors were encountered:
Hi,
I am using your library for fast prototyping.
It was very convenient to use but i had to patch it to read float16.
float16
is not supported by js, but is supported by webgl. So this allow to fetch the data as an opaque manner, the shape remains the same, and the result is anyway typed withdtype==='float16'
.I also use some wrapper to read float16 values in js, but i think it is not really needed at this stage.
Anyway, here is setup.
Tell me if you prefer to have a PR.
Regards,
The text was updated successfully, but these errors were encountered: