Skip to content

Commit 0f30195

Browse files
Merge pull request #667 from naceurCRAAG/naceurCRAAG-patch-1
Update README.md
2 parents b907c8c + 716ed7e commit 0f30195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ the documentation, which contains the unreleased features.
4646
## Example: Solving 2D Poisson Equation via Physics-Informed Neural Networks
4747

4848
```julia
49-
using NeuralPDE, Lux, ModelingToolkit, Optimization
49+
using NeuralPDE, Lux, ModelingToolkit, Optimization, OptimizationOptimisers
5050
import ModelingToolkit: Interval, infimum, supremum
5151

5252
@parameters x y
@@ -68,7 +68,7 @@ dx = 0.1
6868

6969
# Neural network
7070
dim = 2 # number of dimensions
71-
chain = Lux.Chain(Dense(dim, 16, Lux.σ), Dense(16, 16, Flux.σ), Dense(16, 1))
71+
chain = Lux.Chain(Dense(dim, 16, Lux.σ), Dense(16, 16, Lux.σ), Dense(16, 1))
7272

7373
discretization = PhysicsInformedNN(chain, QuadratureTraining())
7474

0 commit comments

Comments
 (0)