Comments (8)
I faced the same issue. I fixed it by installing pip install -U "jax[cpu]"
link, and rest of the dependencies
"optax>=0.1.4", "numpy>=1.24.2", "scipy>=1.10.1", "matplotlib>=3.7.1", "tensorboardX>=2.6", "ipython>=8.12.0"]
from fbpinns.
I faced the same issue. I fixed it by installing
pip install -U "jax[cpu]"
link, and rest of the dependencies"optax>=0.1.4", "numpy>=1.24.2", "scipy>=1.10.1", "matplotlib>=3.7.1", "tensorboardX>=2.6", "ipython>=8.12.0"]
Hi Tirtho, could you add some more detail on how this fixed the issue for you? Did you uninstall the default jaxlib and then install jax[cpu] ?
from fbpinns.
I have the same issue. It also occurs when I run main.py in the multi-level paper.
Please advise
from fbpinns.
I faced the same issue. I fixed it by installing
pip install -U "jax[cpu]"
link, and rest of the dependencies"optax>=0.1.4", "numpy>=1.24.2", "scipy>=1.10.1", "matplotlib>=3.7.1", "tensorboardX>=2.6", "ipython>=8.12.0"]
Hi Tirtho, could you add some more detail on how this fixed the issue for you? Did you uninstall the default jaxlib and then install jax[cpu] ?
Hi, Yes, I have uninstalled everything and created a new python environment as suggested. Afterward I installed the jax[cpu]
version and so on.
from fbpinns.
This looks like an issue with jax.ops.segment_sum
and the internal jax operations not broadcasting correctly @jseeyave @avd28 @ruzhongliang @tirtho109 can you provide more details about your OS / python version / jax version / whether you are running on GPU or CPU? If we can produce a minimal version of this bug (a script which simply calls jax.ops.segment_sum
with the same shape arrays which cause the error above) we can raise an issue in the main JAX repo
from fbpinns.
I'm running on CPU, OS is Ubuntu 20.04.5 LTS, Python 3.9.5, jax/jaxlib-0.4.25.
Please see screenshot below when I try to run '1. Defining your own problem - 1D harmonic oscillator'
'jax.ops.segment_sum' is called twice in trainers.py. I added 2 print statements after each call. They are in the screenshot between the [info] lines. e.g. "line 164. trainers.py. np.size(u)= 400"
Please let me know if there is anything else I can provide to help debug the issue.
from fbpinns.
I narrowed it down and found that there is inconsistency between the shapes of the output arrays of jnp.unique
between different jax versions. I will upload a patch soon.
from fbpinns.
Ok I have patched, closing this issue as it should be fixed now.
from fbpinns.
Related Issues (20)
- About the dataset HOT 1
- functioning of sample constraints HOT 2
- problem with non-constant boundary condition HOT 3
- Modify plot_trainer
- Definition of Helmholtz Equations HOT 1
- no attribute 'cost_analysis' in training HOT 3
- how to use it in an irregular domain
- Higher-Order Gradient Derivative Problem HOT 2
- problem with PINNTrainer and CUDA
- Force NN to find u within an inter-range HOT 1
- some confusion about unormalization HOT 1
- Installation Issue of FBPINN HOT 2
- inference function HOT 1
- Running Error HOT 3
- Modifiying the wave 3D Problem HOT 4
- running error HOT 1
- Wavefield "c" Value HOT 3
- Environment Setting HOT 1
- Empty gradient when the dim of u is 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fbpinns.