Main module for FTorch containing types and procedures.
Interface for deleting generic torch objects
Deallocates a tensor (elemental). Note: Marked as impure due to C interoperability, though the operation is conceptally pure (deletion of a specific C++ Tensor object).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(inout) | :: | tensor |
Tensor to deallocate |
Deallocates a TorchScript model
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_model), | intent(inout) | :: | model |
Torch Model to deallocate |