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
Neural network for Turing equation #11
Comments
Could you print the shapes of your input tensors by |
Hello, @JiaweiZhuang
|
So there are only 2 dimensions |
Yes, there are 2 dimensions, but effectively 1D. I am sorry, but I did not get what you mean by 'adding a batch dimension to make it |
The integrator "vectorizes" over multiple samples. If you just have one sample in the input data, you can add a leading "1" dimension. Something like correct_initial_state = {k: tf.expand_dims(v, 0) for k, v in initial_state.items()} |
@JiaweiZhuang : thank you for your cooperation in helping me resolve this issue. I might not be familiar with many of the low-level things used in this code from tensorflow, so please bear with me. Your suggestion to correct the initial state did get rid of the earlier error related to input tensor rank, so the
This is the code I am using:
|
Hello. I am able to run the Tutorial example with the Turing equation correctly. Now I am trying to extend that example by developing a neural network (nn) for the Turing equation, but I am getting error at the integration stage before training with any numerical data. Based on a tutorial example to create a nn, I am using the following to create a nn for the Turing equation:
I am getting the following error at the
integrate.integrate_steps()
step above.I would appreciate your help in resolving the above error.
The text was updated successfully, but these errors were encountered: