Print kipf message passing layer to unit
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(kipf_msgpass_layer_type), | intent(in) | :: | this |
Instance of the message passing layer |
||
| integer, | intent(in) | :: | unit |
File unit |
subroutine print_to_unit_kipf(this, unit) !! Print kipf message passing layer to unit use coreutils, only: to_upper implicit none ! Arguments class(kipf_msgpass_layer_type), intent(in) :: this !! Instance of the message passing layer integer, intent(in) :: unit !! File unit ! Local variables integer :: t !! Loop index character(100) :: fmt !! Format string ! Write initial parameters !--------------------------------------------------------------------------- write(unit,'(3X,"NUM_TIME_STEPS = ",I0)') this%num_time_steps write(fmt,'("(3X,""NUM_VERTEX_FEATURES ="",",I0,"(1X,I0))")') & this%num_time_steps + 1 write(unit,fmt) this%num_vertex_features if(this%activation%name .ne. 'none')then call this%activation%print_to_unit(unit) end if ! Write learned parameters !--------------------------------------------------------------------------- write(unit,'("WEIGHTS")') do t = 1, this%num_time_steps, 1 write(unit,'(5(E16.8E2))') this%params(t)%val end do write(unit,'("END WEIGHTS")') end subroutine print_to_unit_kipf