Main module for FTorch containing types and procedures.
Generated from ftorch.fypp
using the fypp Fortran preprocessor.
enumerator | :: | torch_kUInt8 | = | 0 | |
enumerator | :: | torch_kInt8 | = | 1 | |
enumerator | :: | torch_kInt16 | = | 2 | |
enumerator | :: | torch_kInt32 | = | 3 | |
enumerator | :: | torch_kInt64 | = | 4 | |
enumerator | :: | torch_kFloat16 | = | 5 | |
enumerator | :: | torch_kFloat32 | = | 6 | |
enumerator | :: | torch_kFloat64 | = | 7 |
Enumerator for Torch data types
From c_torch.h (torch_data_t)
Note that 0 torch_kUInt8
and 5 torch_kFloat16
are not sypported in Fortran
enumerator | :: | torch_kCPU | = | 0 | |
enumerator | :: | torch_kCUDA | = | 1 |
Enumerator for Torch devices
From c_torch.h (torch_device_t)
Interface for deleting generic torch objects
Deallocates a TorchScript model
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_model), | intent(in) | :: | model |
Torch Model to deallocate |
Deallocates a tensor.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(inout) | :: | tensor |
Deallocates an array of tensors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(inout), | dimension(:) | :: | tensor_array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(in), | value | :: | data | ||
integer(kind=c_int), | intent(in), | value | :: | ndims | ||
integer(kind=c_int64_t), | intent(in) | :: | tensor_shape(*) | |||
integer(kind=c_int64_t), | intent(in) | :: | strides(*) | |||
integer(kind=c_int), | intent(in), | value | :: | dtype | ||
integer(kind=c_int), | intent(in), | value | :: | device_type | ||
integer(kind=c_int), | intent(in), | value | :: | device_index | ||
logical(kind=c_bool), | intent(in), | value | :: | requires_grad |
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 |
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 |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(in), | value | :: | tensor | ||
integer(kind=c_int), | intent(in), | value | :: | dtype |
Type for holding a torch neural net (nn.Module).
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(c_ptr), | public | :: | p | = | c_null_ptr |
pointer to the neural net in memory |
Determines the rank of a tensor.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(torch_tensor), | intent(in) | :: | self |
rank of tensor
Determines the shape of a tensor.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(torch_tensor), | intent(in) | :: | self |
Pointer to tensor data
Determines the device index of a tensor.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(in) | :: | tensor |
Input tensor |
Device index of tensor
Deallocates a TorchScript model
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_model), | intent(in) | :: | model |
Torch Model to deallocate |
Performs a forward pass of the model with the input tensors
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_model), | intent(in) | :: | model |
Model |
||
type(torch_tensor), | intent(in), | dimension(:) | :: | input_tensors |
Array of Input tensors |
|
type(torch_tensor), | intent(in), | dimension(:) | :: | output_tensors |
Returned output tensors |
|
logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Loads a TorchScript nn.module (pre-trained PyTorch model saved with TorchScript)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_model), | intent(out) | :: | model |
Returned deserialized model |
||
character(len=*), | intent(in) | :: | filename |
Filename of saved TorchScript model |
||
integer(kind=c_int), | intent(in), | optional | :: | 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 |
|
logical, | intent(in), | optional | :: | is_training |
Whether gradients need to be computed for the created tensor |
Deallocates an array of tensors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(inout), | dimension(:) | :: | tensor_array |
Deallocates a tensor.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(inout) | :: | 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 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 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 |
Exposes the given data as a tensor without taking ownership of the original data. This routine will take an (i, j, k) array and return an (k, j, i) tensor.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
type(c_ptr), | intent(in) | :: | data |
Pointer to data |
||
integer(kind=c_int), | intent(in) | :: | ndims |
Number of dimensions of the tensor |
||
integer(kind=c_int64_t), | intent(in) | :: | tensor_shape(*) |
Shape of the tensor |
||
integer(kind=c_int), | intent(in) | :: | layout(*) |
Layout for strides for accessing data |
||
integer(kind=c_int), | intent(in) | :: | dtype |
Data type of the tensor |
||
integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical(kind=c_bool), | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Returns a tensor filled with the scalar value 1.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=c_int), | intent(in) | :: | ndims |
Number of dimensions of the tensor |
||
integer(kind=c_int64_t), | intent(in) | :: | tensor_shape(*) |
Shape of the tensor |
||
integer(kind=c_int), | intent(in) | :: | dtype |
Data type of the tensor |
||
integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical(kind=c_bool), | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Prints the contents of a tensor.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(in) | :: | tensor |
Input tensor |
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 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 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 |
Returns a tensor filled with the scalar value 0.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(out) | :: | tensor |
Returned tensor |
||
integer(kind=c_int), | intent(in) | :: | ndims |
Number of dimensions of the tensor |
||
integer(kind=c_int64_t), | intent(in) | :: | tensor_shape(*) |
Shape of the tensor |
||
integer(kind=c_int), | intent(in) | :: | dtype |
Data type of the tensor |
||
integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
integer(kind=c_int), | intent(in), | optional | :: | device_index |
device index to use for |
|
logical(kind=c_bool), | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |