denosaurs / netsaur

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
https://netsaur.deno.dev/
MIT License
229 stars 4 forks source link

Use --unstable-ffi flag when working with the library. #70

Closed iyifr closed 2 weeks ago

iyifr commented 1 month ago

It's not explicitly stated anywhere in the docs that the library will refuse to run without the --unstable-ffi flag.

i.e deno run --unstable-ffi main.ts (file with your model code in it)

You will encounter this error without the flag.

image

retraigo commented 1 month ago

dlopen isn't unstable in Deno 2 afaik.

Also you don't need to use --unstable-ffi even before Deno 2 if you use the WASM backend.

iyifr commented 1 month ago

Oh okay! I'm not on deno2 yet, might upgrade later.

I'm using the CPU backend, and i'm pretty sure other first timers will also use it.

It could be added in the docs.

Also where's the src for the docs?

retraigo commented 3 weeks ago

Sounds good. We'll add a note mentioning how Deno 1.xx requires --unstable or --unstable-ffi to use the CPU backend.

As for the docs, if you are talking about netsaur.deno.dev, it is not open source at the moment (since it's WIP) but will be in the near future.

iyifr commented 2 weeks ago

Okay 👍🏾 👌🏽