burn
burn copied to clipboard
Panic in example image-classification-web when activate 2 times Wgpu backend
Describe the bug We can't use 2 times the function "init_async::<AutoGraphicsApi>(&device).await;" panic : image_classification_web.js:478 panicked at burn\burn-compute\src\compute.rs:77:17: Client already created for device BestAvailable
To Reproduce Steps to reproduce:
- Activate the GPU - WebGPU in dropdown
- Activate an other backend in the dropdown
- Activate again the GPU - WebGPU in dropdown
- See error in console
I'm not sure what we should do, should we just ignore the init_async function or panic as right now?
Thank you for reporting it.
I'm not sure what we should do, should we just ignore the
init_asyncfunction or panic as right now?
At very least, we should:
- Document on the WGPU behavior if this is how it is supposed to behave.
- We should fix the example to account for the expected behavior in WGPU.