Photon-AI-Research / NeuralSolvers

Neural network based solvers for partial differential equations and inverse problems :milky_way:. Implementation of physics-informed neural networks in pytorch.
MIT License
141 stars 46 forks source link

AttributeError: 'function' object has no attribute 'hpm_model' #30

Closed maxxxzdn closed 3 years ago

maxxxzdn commented 3 years ago

https://github.com/ComputationalRadiationPhysics/NeuralSolvers/blob/acb61830c0f93a286b59caeacaa421291b3a76d3/PINNFramework/PINN.py#L323

https://github.com/ComputationalRadiationPhysics/NeuralSolvers/blob/acb61830c0f93a286b59caeacaa421291b3a76d3/PINNFramework/PINN.py#L461

I suppose it has to be 'self.pde_loss.hpm_model' instead of 'self.pinn_loss.hpm_model' since self.pinn_loss is a method

StillerPatrick commented 3 years ago

Is fixed and can be used correctly with the next release.