torch_tensor_from_array_legacy Interface Deprecated

public interface torch_tensor_from_array_legacy

This is the old layout-required signature for torch_tensor_from_array: (tensor, data, layout, device_type, [device_index], [requires_grad]). Use torch_tensor_from_array instead. This will be removed in a future release.

Calls

interface~~torch_tensor_from_array_legacy~~CallsGraph interface~torch_tensor_from_array_legacy torch_tensor_from_array_legacy proc~torch_tensor_from_array_int16_1d_legacy torch_tensor_from_array_int16_1d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int16_1d_legacy proc~torch_tensor_from_array_int16_2d_legacy torch_tensor_from_array_int16_2d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int16_2d_legacy proc~torch_tensor_from_array_int16_3d_legacy torch_tensor_from_array_int16_3d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int16_3d_legacy proc~torch_tensor_from_array_int16_4d_legacy torch_tensor_from_array_int16_4d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int16_4d_legacy proc~torch_tensor_from_array_int16_5d_legacy torch_tensor_from_array_int16_5d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int16_5d_legacy proc~torch_tensor_from_array_int32_1d_legacy torch_tensor_from_array_int32_1d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int32_1d_legacy proc~torch_tensor_from_array_int32_2d_legacy torch_tensor_from_array_int32_2d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int32_2d_legacy proc~torch_tensor_from_array_int32_3d_legacy torch_tensor_from_array_int32_3d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int32_3d_legacy proc~torch_tensor_from_array_int32_4d_legacy torch_tensor_from_array_int32_4d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int32_4d_legacy proc~torch_tensor_from_array_int32_5d_legacy torch_tensor_from_array_int32_5d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int32_5d_legacy proc~torch_tensor_from_array_int64_1d_legacy torch_tensor_from_array_int64_1d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int64_1d_legacy proc~torch_tensor_from_array_int64_2d_legacy torch_tensor_from_array_int64_2d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int64_2d_legacy proc~torch_tensor_from_array_int64_3d_legacy torch_tensor_from_array_int64_3d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int64_3d_legacy proc~torch_tensor_from_array_int64_4d_legacy torch_tensor_from_array_int64_4d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int64_4d_legacy proc~torch_tensor_from_array_int64_5d_legacy torch_tensor_from_array_int64_5d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int64_5d_legacy proc~torch_tensor_from_array_int8_1d_legacy torch_tensor_from_array_int8_1d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int8_1d_legacy proc~torch_tensor_from_array_int8_2d_legacy torch_tensor_from_array_int8_2d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int8_2d_legacy proc~torch_tensor_from_array_int8_3d_legacy torch_tensor_from_array_int8_3d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int8_3d_legacy proc~torch_tensor_from_array_int8_4d_legacy torch_tensor_from_array_int8_4d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int8_4d_legacy proc~torch_tensor_from_array_int8_5d_legacy torch_tensor_from_array_int8_5d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_int8_5d_legacy proc~torch_tensor_from_array_real32_1d_legacy torch_tensor_from_array_real32_1d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_real32_1d_legacy proc~torch_tensor_from_array_real32_2d_legacy torch_tensor_from_array_real32_2d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_real32_2d_legacy proc~torch_tensor_from_array_real32_3d_legacy torch_tensor_from_array_real32_3d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_real32_3d_legacy proc~torch_tensor_from_array_real32_4d_legacy torch_tensor_from_array_real32_4d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_real32_4d_legacy proc~torch_tensor_from_array_real32_5d_legacy torch_tensor_from_array_real32_5d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_real32_5d_legacy proc~torch_tensor_from_array_real64_1d_legacy torch_tensor_from_array_real64_1d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_real64_1d_legacy proc~torch_tensor_from_array_real64_2d_legacy torch_tensor_from_array_real64_2d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_real64_2d_legacy proc~torch_tensor_from_array_real64_3d_legacy torch_tensor_from_array_real64_3d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_real64_3d_legacy proc~torch_tensor_from_array_real64_4d_legacy torch_tensor_from_array_real64_4d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_real64_4d_legacy proc~torch_tensor_from_array_real64_5d_legacy torch_tensor_from_array_real64_5d_legacy interface~torch_tensor_from_array_legacy->proc~torch_tensor_from_array_real64_5d_legacy proc~torch_tensor_from_blob torch_tensor_from_blob proc~torch_tensor_from_array_int16_1d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int16_2d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int16_3d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int16_4d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int16_5d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int32_1d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int32_2d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int32_3d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int32_4d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int32_5d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int64_1d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int64_2d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int64_3d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int64_4d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int64_5d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int8_1d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int8_2d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int8_3d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int8_4d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_int8_5d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_real32_1d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_real32_2d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_real32_3d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_real32_4d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_real32_5d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_real64_1d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_real64_2d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_real64_3d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_real64_4d_legacy->proc~torch_tensor_from_blob proc~torch_tensor_from_array_real64_5d_legacy->proc~torch_tensor_from_blob interface~torch_from_blob_c torch_from_blob_c proc~torch_tensor_from_blob->interface~torch_from_blob_c

Module Procedures

public subroutine torch_tensor_from_array_int8_1d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int8), intent(in), pointer, contiguous :: data_in(:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(1)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int8_2d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int8), intent(in), pointer, contiguous :: data_in(:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(2)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int8_3d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int8), intent(in), pointer, contiguous :: data_in(:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(3)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int8_4d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int8), intent(in), pointer, contiguous :: data_in(:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(4)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int8_5d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int8), intent(in), pointer, contiguous :: data_in(:,:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(5)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int16_1d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int16), intent(in), pointer, contiguous :: data_in(:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(1)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int16_2d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int16), intent(in), pointer, contiguous :: data_in(:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(2)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int16_3d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int16), intent(in), pointer, contiguous :: data_in(:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(3)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int16_4d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int16), intent(in), pointer, contiguous :: data_in(:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(4)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int16_5d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int16), intent(in), pointer, contiguous :: data_in(:,:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(5)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int32_1d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int32), intent(in), pointer, contiguous :: data_in(:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(1)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int32_2d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int32), intent(in), pointer, contiguous :: data_in(:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(2)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int32_3d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int32), intent(in), pointer, contiguous :: data_in(:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(3)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int32_4d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int32), intent(in), pointer, contiguous :: data_in(:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(4)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int32_5d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int32), intent(in), pointer, contiguous :: data_in(:,:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(5)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int64_1d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int64), intent(in), pointer, contiguous :: data_in(:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(1)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int64_2d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int64), intent(in), pointer, contiguous :: data_in(:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(2)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int64_3d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int64), intent(in), pointer, contiguous :: data_in(:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(3)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int64_4d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int64), intent(in), pointer, contiguous :: data_in(:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(4)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_int64_5d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

integer(kind=int64), intent(in), pointer, contiguous :: data_in(:,:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(5)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_real32_1d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

real(kind=real32), intent(in), pointer, contiguous :: data_in(:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(1)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_real32_2d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

real(kind=real32), intent(in), pointer, contiguous :: data_in(:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(2)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_real32_3d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

real(kind=real32), intent(in), pointer, contiguous :: data_in(:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(3)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_real32_4d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

real(kind=real32), intent(in), pointer, contiguous :: data_in(:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(4)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_real32_5d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

real(kind=real32), intent(in), pointer, contiguous :: data_in(:,:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(5)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_real64_1d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

real(kind=real64), intent(in), pointer, contiguous :: data_in(:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(1)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_real64_2d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

real(kind=real64), intent(in), pointer, contiguous :: data_in(:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(2)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_real64_3d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

real(kind=real64), intent(in), pointer, contiguous :: data_in(:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(3)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_real64_4d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

real(kind=real64), intent(in), pointer, contiguous :: data_in(:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(4)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor

public subroutine torch_tensor_from_array_real64_5d_legacy(tensor, data_in, layout, device_type, device_index, requires_grad) Deprecated

This is the old layout-required signature for torch_tensor_from_array. Use torch_tensor_from_array instead. This will be removed in a future release.

Arguments

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

Returned tensor

real(kind=real64), intent(in), pointer, contiguous :: data_in(:,:,:,:,:)

Input data that tensor will point at

integer(kind=int32), intent(in) :: layout(5)

Control order of indices

integer(kind=c_int), intent(in) :: device_type

Device type the tensor will live on (torch_kCPU or a GPU device type)

integer, intent(in), optional :: device_index

Device index for GPU devices

logical, intent(in), optional :: requires_grad

Whether gradients need to be computed for the created tensor