Interface for directing torch_tensor_from_array
to possible input types and ranks
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int8
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int8), | intent(in), | target | :: | data_in(:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(1) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int8
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int8), | intent(in), | target | :: | data_in(:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(2) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int8
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int8), | intent(in), | target | :: | data_in(:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(3) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int8
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int8), | intent(in), | target | :: | data_in(:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(4) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int8
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int8), | intent(in), | target | :: | data_in(:,:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(5) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int16
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int16), | intent(in), | target | :: | data_in(:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(1) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int16
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int16), | intent(in), | target | :: | data_in(:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(2) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int16
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int16), | intent(in), | target | :: | data_in(:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(3) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int16
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int16), | intent(in), | target | :: | data_in(:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(4) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int16
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int16), | intent(in), | target | :: | data_in(:,:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(5) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int32
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int32), | intent(in), | target | :: | data_in(:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(1) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int32
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int32), | intent(in), | target | :: | data_in(:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(2) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int32
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int32), | intent(in), | target | :: | data_in(:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(3) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int32
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int32), | intent(in), | target | :: | data_in(:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(4) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int32
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int32), | intent(in), | target | :: | data_in(:,:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(5) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int64
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int64), | intent(in), | target | :: | data_in(:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(1) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int64
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int64), | intent(in), | target | :: | data_in(:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(2) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int64
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int64), | intent(in), | target | :: | data_in(:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(3) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int64
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int64), | intent(in), | target | :: | data_in(:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(4) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int64
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=int64), | intent(in), | target | :: | data_in(:,:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(5) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type real32
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
real(kind=real32), | intent(in), | target | :: | data_in(:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(1) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type real32
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
real(kind=real32), | intent(in), | target | :: | data_in(:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(2) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type real32
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
real(kind=real32), | intent(in), | target | :: | data_in(:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(3) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type real32
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
real(kind=real32), | intent(in), | target | :: | data_in(:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(4) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type real32
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
real(kind=real32), | intent(in), | target | :: | data_in(:,:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(5) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type real64
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
real(kind=real64), | intent(in), | target | :: | data_in(:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(1) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type real64
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
real(kind=real64), | intent(in), | target | :: | data_in(:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(2) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type real64
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
real(kind=real64), | intent(in), | target | :: | data_in(:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(3) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type real64
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
real(kind=real64), | intent(in), | target | :: | data_in(:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(4) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type real64
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
real(kind=real64), | intent(in), | target | :: | data_in(:,:,:,:,:) |
Input data that tensor will point at |
|
integer, | intent(in) | :: | layout(5) |
Control order of indices |
||
integer(kind=c_int), | intent(in) | :: | c_device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |