Skip to content

Commit

Permalink
Merge pull request #17 from MilkshakeForReal/doc
Browse files Browse the repository at this point in the history
Merge pull request #16 from MilkshakeForReal/main
  • Loading branch information
YichengDWu authored Jun 24, 2022
2 parents 627e91c + 7da2fb5 commit 2258250
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/NeuralGraphPDE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import GraphNeuralNetworks: propagate, apply_edges
import Lux: initialparameters, parameterlength, statelength, Chain, applychain,
initialstates
include("utils.jl")
#include("msgpass.jl") seems we don't need it!
include("layers.jl")

export AbstractGNNLayer, AbstractGNNContainerLayer
Expand Down
12 changes: 6 additions & 6 deletions src/layers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,29 @@ Edge convolutional layer from [Learning continuous-time PDEs from sparse data wi
\mathbf{u}_i' = \square_{j \in N(i)}\, \phi([\mathbf{u}_i, \mathbf{u}_j; \mathbf{x}_j - \mathbf{x}_i])
```
## Arguments
# Arguments
- `ϕ`: A neural network.
- `initialgraph`: `GNNGraph` or a function that returns a `GNNGraph`
- `aggr`: Aggregation operator for the incoming messages (e.g. `+`, `*`, `max`, `min`, and `mean`).
## Inputs
# Inputs
- `u`: Trainable node embeddings, `NamedTuple` or `Array`.
## Returns
# Returns
- `NamedTuple` or `Array` that is consistent with `x` with different a size of channels.
## Parameters
# Parameters
- Parameters of `ϕ`.
## States
# States
- `graph`: `GNNGraph` where `graph.ndata.x` represents the spatial coordinates of nodes. You can also put other nontrainable node features in `graph.ndata` with arbitrary keys. They will be concatenated like `u`.
## Examples
# Examples
```julia
s = [1, 1, 2, 3]
Expand Down

0 comments on commit 2258250

Please sign in to comment.