Comments (11)
Hey, @SumantSoni !
Thanks for the interest! It looks like you use tensorflow 2.x
, which isn't supported in pydens
. Installing, say, tensorflow 1.15
should be enough to solve the problem.
Best,
Alex
from pydens.
from pydens.
Hello again!
Have you tried to uninstall tensorflow 2.0
before installing tensorflow 1.15
?
The commands would be
pip uninstall protobuf
pip uninstall tensorflow
As for the second part of the question, regarding collocation method: to my understanding, the essence of the method is to nullify differential equation in a certain set of points. The closest thing in pydens
would be to generate points for training using only collocation points, rather than the whole domain.
For instance, you can easily make a sampler that randomly chooses batches of points from collocation set of [0, 0.25, 0.5, 1]
in the following manner:
collocation_points = np.array([0, 0.25, 0.5, 1])
s = NumpySampler('choice', a=collocation_points)
Best,
Alex
from pydens.
Dear Alex,
Nice to see your reply. It helped me a lot to figure out my doubts but still I have one doubt.
How are the coordinates values are implementing in the derivative terms.
Suppose, grad( u(x,y) ) has appeared in loss function and then a single point (x1,y1, t1) from collocation has been replaced in place of ( x,y) of u. but what about grad of u.
how are we dealing with grad of u.
I am confused for implementing the collocation point in place of unknown fn u(x,y) and also differentiation of unknown valued fn u(x,y).
Kindly figure it out for me.
and Thanks a lot for your clarification.
Sumant
from pydens.
Hi all,
I'm using tf 1.15.0 but still getting the error: OperatorNotAllowedInGraphError: iterating over tf.Tensor is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function. Do you know of any possible reasons why that might be the case?
Best,
Josh
from pydens.
Hello
The reason behind this type of error is the eager execution of TF. Disable it by using disable_eager_execution
method and you should be good to go!
Sergey
from pydens.
Hi @SergeyTsimfer,
Thanks for getting back so quickly! Sorry I'm still a little confused, isn't the error message telling us to use eager execution? Either way, have tried using the disable_eager_execution method both in the notebook I'm working in and inside letters.py inside the pydens folder. Am I thinking about this the wrong way? Thank you so much!
Josh
from pydens.
Can you share the code you are trying to run? or you can provide the link to your colab
notebook
Sergey
from pydens.
Here is the link to the Colab notebook: https://colab.research.google.com/drive/1SSaRsCpn01-yTf2twFGyVXUZlZelG-x4?usp=sharing
Josh
from pydens.
I was able to reproduce the error on my side: it is actually caused by the 1.15 version, and on 1.14 everything runs fine.
I deployed a fix for the 1.15 version: it allows to run all the notebooks from top to bottom. It is available to you in fix_tf
branch #26 , and I am discussing merge to the main branch with my colleagues right now (so you can just use pip install
).
Thanks for catching a bug!
Update: merged
Sergey
from pydens.
Hi Sergey,
Thank you so much for the help!
Best,
Josh
from pydens.
Related Issues (20)
- Compilation error HOT 2
- boundry conditions HOT 1
- How can I change the interval of x HOT 3
- Elasticity Equations HOT 2
- How to install easily with PIP command? HOT 2
- Disentangle pydense and batchflow
- OperatorNotAllowedInGraphError: iterating over `tf.Tensor` is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function HOT 2
- How to solve Elliptic PDE with four different boundary conditions?
- Can anyone tell me the version of all the python packages installed?
- Create workflow to check installation
- Create workflow for releases
- Pyden Installation Problem HOT 1
- readme tanh,not tahn HOT 1
- How to solve if Parametric heat-equation in the example has 2 or 3 boundary conditions? HOT 2
- Learning from Data
- LBFGS optimizer not working
- Plotting problem HOT 1
- Systems of PDEs
- How to set an additional initial condition?
- Bug: type of missing layer (`ConvBlock`)
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 pydens.