Cambridge-ICCS / FTorch

A library for directly calling PyTorch ML models from Fortran.
https://cambridge-iccs.github.io/FTorch/
MIT License
79 stars 16 forks source link

add interface to delete all torch objects #156

Closed TomMelt closed 4 months ago

TomMelt commented 4 months ago

This PR builds on #155

This PR adds one centralized interface that is capable of deleting multiple torch objects:

https://github.com/Cambridge-ICCS/FTorch/blob/2aae63ab73b8166db7eca55574e580a199629619/src/ftorch.f90#L77-L82