Submodule containing implementations for a message passing layer
Get the number of learnable parameters in the layer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(msgpass_layer_type), | intent(in) | :: | this |
Instance of the layer type |
Number of learnable parameters
Procedure to set up the layer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in), | dimension(2) | :: | num_features |
Number of features |
|
| integer, | intent(in) | :: | num_time_steps |
Number of time steps |
||
| integer, | intent(in), | optional | :: | verbose |
Verbosity level |
Instance of the layer type
Forward propagation for the layer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(msgpass_layer_type), | intent(inout) | :: | this |
Instance of the layer type |
||
| class(array_type), | intent(in), | dimension(:,:) | :: | input |
Input data (i.e. vertex and edge features) |
Initialise the layer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(msgpass_layer_type), | intent(inout) | :: | this |
Instance of the layer type |
||
| integer, | intent(in), | dimension(:) | :: | input_shape |
Input shape |
|
| integer, | intent(in), | optional | :: | verbose |
Verbosity level |
Set the graph structure of the input data
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(msgpass_layer_type), | intent(inout) | :: | this |
Instance of the layer |
||
| type(graph_type), | intent(in), | dimension(:) | :: | graph |
Graph structure of input data |