-
Notifications
You must be signed in to change notification settings - Fork 92
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The tutorial on Poisson does not produce a plot on Google colab.
Commitment
I was trying to run the code to have a simple PINN for a class, I'm not thinking to debug the code. I thank you in advance if you will debug it.
To Reproduce
https://colab.research.google.com/github/mathLab/PINA/blob/master/tutorials/tutorial2/tutorial.ipynb at the first plot cell.
Bug
I get this error
ValueError: only one element tensors can be converted to Python scalars
when running the tutorial on Poisson on google colab https://mathlab.github.io/PINA/_rst/tutorials/tutorial2/tutorial.html
Complete Error
ValueError Traceback (most recent call last)
[<ipython-input-4-da1f560dd1b4>](https://localhost:8080/#) in <cell line: 2>()
1 plotter = Plotter()
----> 2 plotter.plot(solver=pinn)
13 frames
[/usr/local/lib/python3.10/dist-packages/torch/_tensor.py](https://localhost:8080/#) in __torch_function__(cls, func, types, args, kwargs)
1510
1511 with _C.DisableTorchFunctionSubclass():
-> 1512 ret = func(*args, **kwargs)
1513 if func in get_default_nowrap_functions():
1514 return ret
ValueError: only one element tensors can be converted to Python scalars```
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working