3 ms·
BTW: you might want to add support for typed arrays. See: https://github.com/xenova/transformers.js/blob/8804c36591d11d8456788d1bb4b16489121b3be2/src/utils/ten
by sroussey 3y ago
BTW: you might want to add support for typed arrays.
See: https://github.com/xenova/transformers.js/blob/8804c36591d11d8456788d1bb4b16489121b3be2/src/utils/tensor.js#L45 https://github.com/xenova/transformers.js/blob/8804c36591d11...
This is really old, but added as part of the shape of the vector as well: https://github.com/nicolaspanel/numjs/blob/master/src/dtypes.js https://github.com/nicolaspanel/numjs/blob/master/src/dtypes...
- jzombie 3y agoI agree. This advice should not be ignored; and if the OP is complaining about performance, the answer is lying here in plain sight.
- eduardoleao052 3y agoI had read about this as a possibility, but will definitely look more into it now, thank you for the tip!