Read neural operator layer from file and return as base_layer_type
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | unit |
Unit number |
||
| integer, | intent(in), | optional | :: | verbose |
Verbosity level |
Allocated layer instance
function read_neural_operator_layer(unit, verbose) result(layer) !! Read neural operator layer from file and return as base_layer_type implicit none ! Arguments integer, intent(in) :: unit !! Unit number integer, optional, intent(in) :: verbose !! Verbosity level class(base_layer_type), allocatable :: layer !! Allocated layer instance ! Local variables integer :: verbose_ = 0 if(present(verbose)) verbose_ = verbose allocate(layer, source=neural_operator_layer_type(num_outputs=0)) call layer%read(unit, verbose=verbose_) end function read_neural_operator_layer