Module containing the implementation of the data initialiser
This module contains the implementation of the data initialiser for the weights and biases of a layer
Interface for the data initialiser
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in), | dimension(..) | :: | data |
Data to initialise the weights and biases with |
data initialiser object
Type for the data initialiser
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real32), | public, | dimension(:), allocatable | :: | data |
Data to initialise the weights or biases with |
||
| real(kind=real32), | public | :: | mean | = | 1._real32 |
Scale, mean, and standard deviation of the initialiser |
|
| character(len=20), | public | :: | name |
Name of the initialiser |
|||
| real(kind=real32), | public | :: | scale | = | 1._real32 |
Scale, mean, and standard deviation of the initialiser |
|
| real(kind=real32), | public | :: | std | = | 0.01_real32 |
Scale, mean, and standard deviation of the initialiser |
| private module function initialiser_data_setup (data) | Interface for the data initialiser |
| procedure, public, pass(this) :: initialise => data_initialise | Initialise the weights and biases using the data distribution |
Interface for the data initialiser
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in), | dimension(..) | :: | data |
Data to initialise the weights and biases with |
data initialiser object
Initialise the weights and biases using the data distribution
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_init_type), | intent(inout) | :: | this |
Instance of the data initialiser |
||
| real(kind=real32), | intent(out), | dimension(..) | :: | input |
Weights and biases to initialise |
|
| integer, | intent(in), | optional | :: | fan_in |
Number of input and output parameters |
|
| integer, | intent(in), | optional | :: | fan_out |
Number of input and output parameters |
|
| integer, | intent(in), | optional, | dimension(:) | :: | spacing |
Spacing of the input and output units |