praeclarum / webgpu-torch

Tensor computation with WebGPU acceleration
MIT License
576 stars 15 forks source link

Example code output "Error: Gradient can only be implicitly created for scalar outputs" #13

Open tomlarkworthy opened 8 months ago

tomlarkworthy commented 8 months ago

I tried the README code in a notebook: https://observablehq.com/d/e02d090ea2a71fda

but the grad() is throwing an error

image