torch_tensor_to_array Interface

public interface torch_tensor_to_array

Interface for directing torch_tensor_to_array to possible input types and ranks


Module Procedures

public subroutine torch_tensor_to_array_int8_1d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 1 and data type int8

Arguments

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

Returned tensor

integer(kind=int8), intent(out), pointer :: data_out(:)

Pointer to tensor data

integer, intent(in), optional :: sizes(1)

Number of entries for each rank

public subroutine torch_tensor_to_array_int8_2d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 2 and data type int8

Arguments

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

Returned tensor

integer(kind=int8), intent(out), pointer :: data_out(:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(2)

Number of entries for each rank

public subroutine torch_tensor_to_array_int8_3d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 3 and data type int8

Arguments

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

Returned tensor

integer(kind=int8), intent(out), pointer :: data_out(:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(3)

Number of entries for each rank

public subroutine torch_tensor_to_array_int8_4d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 4 and data type int8

Arguments

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

Returned tensor

integer(kind=int8), intent(out), pointer :: data_out(:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(4)

Number of entries for each rank

public subroutine torch_tensor_to_array_int8_5d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 5 and data type int8

Arguments

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

Returned tensor

integer(kind=int8), intent(out), pointer :: data_out(:,:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(5)

Number of entries for each rank

public subroutine torch_tensor_to_array_int16_1d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 1 and data type int16

Arguments

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

Returned tensor

integer(kind=int16), intent(out), pointer :: data_out(:)

Pointer to tensor data

integer, intent(in), optional :: sizes(1)

Number of entries for each rank

public subroutine torch_tensor_to_array_int16_2d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 2 and data type int16

Arguments

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

Returned tensor

integer(kind=int16), intent(out), pointer :: data_out(:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(2)

Number of entries for each rank

public subroutine torch_tensor_to_array_int16_3d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 3 and data type int16

Arguments

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

Returned tensor

integer(kind=int16), intent(out), pointer :: data_out(:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(3)

Number of entries for each rank

public subroutine torch_tensor_to_array_int16_4d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 4 and data type int16

Arguments

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

Returned tensor

integer(kind=int16), intent(out), pointer :: data_out(:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(4)

Number of entries for each rank

public subroutine torch_tensor_to_array_int16_5d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 5 and data type int16

Arguments

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

Returned tensor

integer(kind=int16), intent(out), pointer :: data_out(:,:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(5)

Number of entries for each rank

public subroutine torch_tensor_to_array_int32_1d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 1 and data type int32

Arguments

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

Returned tensor

integer(kind=int32), intent(out), pointer :: data_out(:)

Pointer to tensor data

integer, intent(in), optional :: sizes(1)

Number of entries for each rank

public subroutine torch_tensor_to_array_int32_2d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 2 and data type int32

Arguments

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

Returned tensor

integer(kind=int32), intent(out), pointer :: data_out(:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(2)

Number of entries for each rank

public subroutine torch_tensor_to_array_int32_3d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 3 and data type int32

Arguments

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

Returned tensor

integer(kind=int32), intent(out), pointer :: data_out(:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(3)

Number of entries for each rank

public subroutine torch_tensor_to_array_int32_4d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 4 and data type int32

Arguments

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

Returned tensor

integer(kind=int32), intent(out), pointer :: data_out(:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(4)

Number of entries for each rank

public subroutine torch_tensor_to_array_int32_5d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 5 and data type int32

Arguments

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

Returned tensor

integer(kind=int32), intent(out), pointer :: data_out(:,:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(5)

Number of entries for each rank

public subroutine torch_tensor_to_array_int64_1d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 1 and data type int64

Arguments

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

Returned tensor

integer(kind=int64), intent(out), pointer :: data_out(:)

Pointer to tensor data

integer, intent(in), optional :: sizes(1)

Number of entries for each rank

public subroutine torch_tensor_to_array_int64_2d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 2 and data type int64

Arguments

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

Returned tensor

integer(kind=int64), intent(out), pointer :: data_out(:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(2)

Number of entries for each rank

public subroutine torch_tensor_to_array_int64_3d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 3 and data type int64

Arguments

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

Returned tensor

integer(kind=int64), intent(out), pointer :: data_out(:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(3)

Number of entries for each rank

public subroutine torch_tensor_to_array_int64_4d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 4 and data type int64

Arguments

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

Returned tensor

integer(kind=int64), intent(out), pointer :: data_out(:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(4)

Number of entries for each rank

public subroutine torch_tensor_to_array_int64_5d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 5 and data type int64

Arguments

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

Returned tensor

integer(kind=int64), intent(out), pointer :: data_out(:,:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(5)

Number of entries for each rank

public subroutine torch_tensor_to_array_real32_1d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 1 and data type real32

Arguments

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

Returned tensor

real(kind=real32), intent(out), pointer :: data_out(:)

Pointer to tensor data

integer, intent(in), optional :: sizes(1)

Number of entries for each rank

public subroutine torch_tensor_to_array_real32_2d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 2 and data type real32

Arguments

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

Returned tensor

real(kind=real32), intent(out), pointer :: data_out(:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(2)

Number of entries for each rank

public subroutine torch_tensor_to_array_real32_3d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 3 and data type real32

Arguments

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

Returned tensor

real(kind=real32), intent(out), pointer :: data_out(:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(3)

Number of entries for each rank

public subroutine torch_tensor_to_array_real32_4d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 4 and data type real32

Arguments

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

Returned tensor

real(kind=real32), intent(out), pointer :: data_out(:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(4)

Number of entries for each rank

public subroutine torch_tensor_to_array_real32_5d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 5 and data type real32

Arguments

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

Returned tensor

real(kind=real32), intent(out), pointer :: data_out(:,:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(5)

Number of entries for each rank

public subroutine torch_tensor_to_array_real64_1d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 1 and data type real64

Arguments

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

Returned tensor

real(kind=real64), intent(out), pointer :: data_out(:)

Pointer to tensor data

integer, intent(in), optional :: sizes(1)

Number of entries for each rank

public subroutine torch_tensor_to_array_real64_2d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 2 and data type real64

Arguments

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

Returned tensor

real(kind=real64), intent(out), pointer :: data_out(:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(2)

Number of entries for each rank

public subroutine torch_tensor_to_array_real64_3d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 3 and data type real64

Arguments

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

Returned tensor

real(kind=real64), intent(out), pointer :: data_out(:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(3)

Number of entries for each rank

public subroutine torch_tensor_to_array_real64_4d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 4 and data type real64

Arguments

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

Returned tensor

real(kind=real64), intent(out), pointer :: data_out(:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(4)

Number of entries for each rank

public subroutine torch_tensor_to_array_real64_5d(tensor, data_out, sizes)

Return the array data associated with a Torch tensor of rank 5 and data type real64

Arguments

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

Returned tensor

real(kind=real64), intent(out), pointer :: data_out(:,:,:,:,:)

Pointer to tensor data

integer, intent(in), optional :: sizes(5)

Number of entries for each rank