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
I haven't measured time spent to download the result from GPU, pass it back to JS and then upload back, so keeping tensors on GPU might be a good idea. But not sure if it's worth the effort though
original mentioned here: #17167
Methods that are commonly used by users are here:
https://github.com/xenova/transformers.js/blob/main/src/utils/tensor.js
and here:
https://github.com/dakenf/stable-diffusion-webgpu-minimal/blob/main/src/lib/Tensor.ts
We will take a look what can be done.
fyi @dakenf, @fs-eire, @xenova
The text was updated successfully, but these errors were encountered: