torch_model Derived Type

type, public :: torch_model

Type for holding a torch neural net (nn.Module).


Components

Type Visibility Attributes Name Initial
type(c_ptr), public :: p = c_null_ptr

pointer to the neural net in memory


Source Code

  type torch_model
    type(c_ptr) :: p = c_null_ptr  !! pointer to the neural net in memory
  end type torch_model