torch_model Derived Type

type, public :: torch_model

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


Inherits

type~~torch_model~~InheritsGraph type~torch_model torch_model c_ptr c_ptr type~torch_model->c_ptr p

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