Interface for directing torch_tensor_to_array
to possible input types and ranks
Return the array data associated with a Torch tensor of rank 1 and data type int8
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 2 and data type int8
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 3 and data type int8
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 4 and data type int8
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 5 and data type int8
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 1 and data type int16
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 2 and data type int16
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 3 and data type int16
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 4 and data type int16
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 5 and data type int16
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 1 and data type int32
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 2 and data type int32
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 3 and data type int32
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 4 and data type int32
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 5 and data type int32
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 1 and data type int64
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 2 and data type int64
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 3 and data type int64
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 4 and data type int64
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 5 and data type int64
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 1 and data type real32
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 2 and data type real32
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 3 and data type real32
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 4 and data type real32
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 5 and data type real32
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 1 and data type real64
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 2 and data type real64
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 3 and data type real64
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 4 and data type real64
Type | Intent | Optional | 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 |
Return the array data associated with a Torch tensor of rank 5 and data type real64
Type | Intent | Optional | 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 |