torch_delete Interface

public interface torch_delete

Interface for deleting generic torch objects

Calls

interface~~torch_delete~~CallsGraph interface~torch_delete torch_delete proc~torch_model_delete torch_model_delete interface~torch_delete->proc~torch_model_delete proc~torch_tensor_array_delete torch_tensor_array_delete interface~torch_delete->proc~torch_tensor_array_delete proc~torch_tensor_delete torch_tensor_delete interface~torch_delete->proc~torch_tensor_delete proc~torch_tensor_array_delete->proc~torch_tensor_delete

Module Procedures

public subroutine torch_model_delete(model)

Deallocates a TorchScript model

Arguments

Type IntentOptional Attributes Name
type(torch_model), intent(in) :: model

Torch Model to deallocate

public subroutine torch_tensor_delete(tensor)

Deallocates a tensor.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(inout) :: tensor

Tensor to deallocate

public subroutine torch_tensor_array_delete(tensor_array)

Deallocates an array of tensors.

Arguments

Type IntentOptional Attributes Name
type(torch_tensor), intent(inout), dimension(:) :: tensor_array

Array of tensors to deallocate