-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
WebGPU<-->BigInt
: Tensorflow.js - Initialization of backend webgpu failed TypeError: Cannot convert a BigInt value to a number
#22029
Comments
WebGPU<-->BigInt
: Tensorflow.js - Initialization of backend webgpu failed TypeError: Cannot convert a BigInt value to a number
run into the same problem |
The spec defines |
@josephrocca Could you print the output of this code from your repl in both Chrome and deno?
|
@mmastrac Sorry for delay - was waiting to get access to the Windows machine again (I have linux, which doesn't support webgpu on chrome). Here are the logs: Chrome:
Deno:
Edge:
|
Update: This error is now fixed in the latest version of tfjs Tensorflow.js now seems to fail in a different way. ReproI ran the original example, but with latest Deno & npm specifiers (Note: this reproduces with Deno $ deno run mod.ts
Initialization of backend webgpu failed
TypeError: adapter.requestAdapterInfo is not a function
at [...]/deno/npm/registry.npmjs.org/@tensorflow/tfjs-backend-webgpu/4.21.0/dist/tf-backend-webgpu.node.js:2147:50
at step ([...]/deno/npm/registry.npmjs.org/@tensorflow/tfjs-backend-webgpu/4.21.0/dist/tf-backend-webgpu.node.js:144:27)
at Object.next ([...]/deno/npm/registry.npmjs.org/@tensorflow/tfjs-backend-webgpu/4.21.0/dist/tf-backend-webgpu.node.js:93:53)
at fulfilled ([...]deno/npm/registry.npmjs.org/@tensorflow/tfjs-backend-webgpu/4.21.0/dist/tf-backend-webgpu.node.js:74:28)
error: Uncaught (in promise) Error: Could not initialize any backends, all backend initializations failed.
at Engine.<anonymous> ([...]/deno/npm/registry.npmjs.org/@tensorflow/tfjs-core/4.21.0/dist/tf-core.node.js:4301:35)
at step ([...]/deno/npm/registry.npmjs.org/@tensorflow/tfjs-core/4.21.0/dist/tf-core.node.js:138:27) |
The following code failed with error
value of |
Version: Deno 1.39.4
The code below works in Deno with an earlier
tfjs-webgpu-backend
version (seeimport_map.json
here), but I raised the tfjs version numbers to4.16.0
as shown below, and that produces the error logs below. I'm guessing that this is because newer versions of tf.js have started using BigInts, and Deno hasn't implemented some WebGPU<-->BigInt stuff.I've confirmed that the code below works fine on Chrome (Windows).
deno.json
import_map.json
main.js
Error Logs
The text was updated successfully, but these errors were encountered: