ftorch Module

Main module for FTorch containing types and procedures.

  • License FTorch is released under an MIT license. See the LICENSE file for details.

Uses

  • module~~ftorch~~UsesGraph module~ftorch ftorch module~ftorch_devices ftorch_devices module~ftorch->module~ftorch_devices module~ftorch_model ftorch_model module~ftorch->module~ftorch_model module~ftorch_tensor ftorch_tensor module~ftorch->module~ftorch_tensor module~ftorch_types ftorch_types module~ftorch->module~ftorch_types iso_fortran_env iso_fortran_env module~ftorch_devices->iso_fortran_env module~ftorch_model->module~ftorch_devices module~ftorch_model->module~ftorch_tensor module~ftorch_model->module~ftorch_types iso_c_binding iso_c_binding module~ftorch_model->iso_c_binding module~ftorch_tensor->module~ftorch_devices module~ftorch_tensor->module~ftorch_types module~ftorch_tensor->iso_c_binding module~ftorch_tensor->iso_fortran_env module~ftorch_types->iso_fortran_env

Interfaces

public interface torch_delete

Interface for deleting generic torch objects

  • public subroutine torch_model_delete(model)

    Deallocates a TorchScript model

    Arguments

    Type IntentOptional Attributes Name
    type(torch_model), intent(inout) :: 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