athena__base_layer_submodule_io Submodule

Submodule containing the implementation of the base layer types

This submodule contains the implementation of the base layer types used in the ATHENA library. The base layer types are the abstract types from which all other layer types are derived. The submodule contains the implementation of the I/O procedures for the base layer


Uses


Module Subroutines

module subroutine print_base(this, file, unit, print_header_footer)

Print the layer and wrapping info to a file

Arguments

Type IntentOptional Attributes Name
class(base_layer_type), intent(in) :: this

Instance of the layer

character(len=*), intent(in), optional :: file

File name

integer, intent(in), optional :: unit

Unit number

logical, intent(in), optional :: print_header_footer

Boolean whether to print header and footer

module subroutine print_to_unit_base(this, unit)

Print the layer to a file

Arguments

Type IntentOptional Attributes Name
class(base_layer_type), intent(in) :: this

Instance of the layer

integer, intent(in) :: unit

File unit

module subroutine print_to_unit_batch(this, unit)

Print 3D batch normalisation layer to unit

Arguments

Type IntentOptional Attributes Name
class(batch_layer_type), intent(in) :: this

Instance of batch normalisation layer

integer, intent(in) :: unit

File unit

module subroutine print_to_unit_conv(this, unit)

Print 2D convolutional layer to unit

Arguments

Type IntentOptional Attributes Name
class(conv_layer_type), intent(in) :: this

Instance of the 2D convolutional layer

integer, intent(in) :: unit

File unit

module subroutine print_to_unit_pad(this, unit)

Print padding layer to a file

Arguments

Type IntentOptional Attributes Name
class(pad_layer_type), intent(in) :: this

Instance of the layer

integer, intent(in) :: unit

File unit

module subroutine print_to_unit_pool(this, unit)

Print pooling layer to a file

Arguments

Type IntentOptional Attributes Name
class(pool_layer_type), intent(in) :: this

Instance of the layer

integer, intent(in) :: unit

File unit