Skip to content

Commit

Permalink
Add section for derived types and enums
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Jan 6, 2025
1 parent a1ba55c commit 94d95ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ftorch.F90
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module ftorch

implicit none

! --- Derived types and enums

!> Type for holding a torch neural net (nn.Module).
type torch_model
type(c_ptr) :: p = c_null_ptr !! pointer to the neural net in memory
Expand Down
2 changes: 2 additions & 0 deletions src/ftorch.fypp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ module ftorch

implicit none

! --- Derived types and enums

!> Type for holding a torch neural net (nn.Module).
type torch_model
type(c_ptr) :: p = c_null_ptr !! pointer to the neural net in memory
Expand Down

0 comments on commit 94d95ff

Please sign in to comment.