Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can tensorflow.js wasm backend use .wasm modules in safari? #8525

Open
arcman7 opened this issue Mar 10, 2025 · 0 comments
Open

Can tensorflow.js wasm backend use .wasm modules in safari? #8525

arcman7 opened this issue Mar 10, 2025 · 0 comments
Assignees
Labels
comp:wasm type:bug Something isn't working

Comments

@arcman7
Copy link

arcman7 commented Mar 10, 2025

I've tested setting my backend to wasm via:

    const wasm = await import('@tensorflow/tfjs-backend-wasm');
    wasm.setWasmPaths('/');
    await tf.setBackend('wasm');

and I see the network request:
http://localhost:3000/tfjs-backend-wasm-simd.wasm
in the chrome network tab.

However, on both safari and safari mobile, I only see this network request:

URL: http://localhost:3000/node_modules/.vite/deps/@tensorflow_tfjs-backend-wasm.js?v=0197951e

Image

I've been searching the docs, but I don't see anything regarding any special behavior for safari browser environments. Can someone please verify is this is expected or not?

@shmishra99 shmishra99 self-assigned this Mar 12, 2025
@shmishra99 shmishra99 added comp:wasm type:bug Something isn't working labels Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:wasm type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants