-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
can you add an example to the repo on how we can use tfjs webgpu in deno? I have been struggling with the following for a while:
import * as tf from '@tensorflow/tfjs-core';
import '@tensorflow/tfjs-backend-webgpu';
await tf.setBackend('webgpu')It gives errors like this back:
Initialization of backend webgpu failed
TypeError: Failed to execute 'call' on 'GPUAdapter': 'requiredFeatures' of 'GPUDeviceDescriptor' (Argument 2), index 1 can not be converted to a enum
I know I am roughly on the right track though because this works:
import * as tf from '@tensorflow/tfjs-core';
import '@tensorflow/tfjs-backend-cpu';
await tf.setBackend('cpu')Metadata
Metadata
Assignees
Labels
No labels