Module for the FTorch torch_tensor type and associated procedures.
Generated from ftorch_tensor.fypp using the
fypp Fortran preprocessor.
Overloads assignment operator for tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(inout) | :: | output |
Tensor to assign values to |
||
| type(torch_tensor), | intent(in) | :: | input |
Tensor whose values are to be used |
Overloads multiplication operator for two tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor1 |
First tensor to be multiplied |
||
| type(torch_tensor), | intent(in) | :: | tensor2 |
Second tensor to be multiplied |
Tensor to hold the product
Overloads exponentiation operator for a tensor and a scalar of type int8
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| integer(kind=int8), | intent(in), | target | :: | power |
Integer exponent |
Tensor to hold the exponentiation
Overloads exponentiation operator for a tensor and a scalar of type int16
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| integer(kind=int16), | intent(in), | target | :: | power |
Integer exponent |
Tensor to hold the exponentiation
Overloads exponentiation operator for a tensor and a scalar of type int32
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| integer(kind=int32), | intent(in), | target | :: | power |
Integer exponent |
Tensor to hold the exponentiation
Overloads exponentiation operator for a tensor and a scalar of type int64
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| integer(kind=int64), | intent(in), | target | :: | power |
Integer exponent |
Tensor to hold the exponentiation
Overloads exponentiation operator for a tensor and a scalar of type real32
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| real(kind=real32), | intent(in), | target | :: | power |
Floating point exponent |
Tensor to hold the exponentiation
Overloads exponentiation operator for a tensor and a scalar of type real64
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| real(kind=real64), | intent(in), | target | :: | power |
Floating point exponent |
Tensor to hold the exponentiation
Overloads addition operator for two tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor1 |
First tensor to be added |
||
| type(torch_tensor), | intent(in) | :: | tensor2 |
Second tensor to be added |
Tensor to hold the sum
Overloads negative operator for a single tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the negative of |
Tensor to hold the negative values
Overloads subtraction operator for two tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor1 |
First tensor for the subtraction |
||
| type(torch_tensor), | intent(in) | :: | tensor2 |
Second tensor for the subtraction |
Tensor to hold the difference
Overloads division operator for two tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor1 |
First tensor for the division |
||
| type(torch_tensor), | intent(in) | :: | tensor2 |
Second tensor for the division |
Tensor to hold the quotient
| 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 |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in), | value | :: | output_c | ||
| type(c_ptr), | intent(in), | value | :: | tensor1_c | ||
| type(c_ptr), | intent(in), | value | :: | tensor2_c |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int8 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int8 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int8 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int8 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int8 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int16 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int16 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int16 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int16 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int16 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type real32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type real32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type real32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type real32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type real32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type real64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type real64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type real64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type real64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type real64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in), | value | :: | output_c | ||
| type(c_ptr), | intent(in), | value | :: | tensor1_c | ||
| type(c_ptr), | intent(in), | value | :: | tensor2_c |
Type for holding a Torch tensor.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(c_ptr), | public | :: | p | = | c_null_ptr |
pointer to the tensor in memory |
| final :: torch_tensor_delete |
| procedure, public :: get_device_index => torch_tensor_get_device_index | |
| procedure, public :: get_device_type => torch_tensor_get_device_type | |
| procedure, public :: get_dtype => torch_tensor_get_dtype | |
| procedure, public :: get_rank => torch_tensor_get_rank | |
| procedure, public :: get_shape => torch_tensor_get_shape | |
| procedure, public :: get_stride => torch_tensor_get_stride | |
| procedure, public :: print => torch_tensor_print | |
| procedure, public :: requires_grad => torch_tensor_requires_grad | |
| procedure, public :: zero => torch_tensor_zero | |
| procedure, public :: zero_grad => torch_tensor_zero_grad |
Overloads addition operator for two tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor1 |
First tensor to be added |
||
| type(torch_tensor), | intent(in) | :: | tensor2 |
Second tensor to be added |
Tensor to hold the sum
Overloads division operator for two tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor1 |
First tensor for the division |
||
| type(torch_tensor), | intent(in) | :: | tensor2 |
Second tensor for the division |
Tensor to hold the quotient
Determines the device index of a tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(torch_tensor), | intent(in) | :: | self |
Tensor to get the device index of |
Device index of tensor
Returns the device type of a tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(torch_tensor), | intent(in) | :: | self |
Tensor to get the device type of |
Device type of tensor
Returns the data type of a tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(torch_tensor), | intent(in) | :: | self |
Tensor to get the data type of |
Data type of tensor
Determines the rank of a tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(torch_tensor), | intent(in) | :: | self |
Tensor to get the rank of |
Rank of tensor
Determines the shape of a tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(torch_tensor), | intent(in) | :: | self |
Tensor to get the shape of |
Pointer to tensor data
Return the strides of the tensor
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(torch_tensor), | intent(in) | :: | self |
Tensor to get the strides of |
Pointer to tensor data
Overloads multiplication operator for two tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor1 |
First tensor to be multiplied |
||
| type(torch_tensor), | intent(in) | :: | tensor2 |
Second tensor to be multiplied |
Tensor to hold the product
Overloads negative operator for a single tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the negative of |
Tensor to hold the negative values
Overloads exponentiation operator for a tensor and a scalar of type int16
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| integer(kind=int16), | intent(in), | target | :: | power |
Integer exponent |
Tensor to hold the exponentiation
Overloads exponentiation operator for a tensor and a scalar of type int32
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| integer(kind=int32), | intent(in), | target | :: | power |
Integer exponent |
Tensor to hold the exponentiation
Overloads exponentiation operator for a tensor and a scalar of type int64
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| integer(kind=int64), | intent(in), | target | :: | power |
Integer exponent |
Tensor to hold the exponentiation
Overloads exponentiation operator for a tensor and a scalar of type int8
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| integer(kind=int8), | intent(in), | target | :: | power |
Integer exponent |
Tensor to hold the exponentiation
Overloads exponentiation operator for a tensor and a scalar of type real32
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| real(kind=real32), | intent(in), | target | :: | power |
Floating point exponent |
Tensor to hold the exponentiation
Overloads exponentiation operator for a tensor and a scalar of type real64
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the power of |
||
| real(kind=real64), | intent(in), | target | :: | power |
Floating point exponent |
Tensor to hold the exponentiation
Determines whether a tensor requires the autograd module.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(torch_tensor), | intent(in) | :: | self |
Tensor to query |
Whether the tensor requires autograd
Overloads subtraction operator for two tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor1 |
First tensor for the subtraction |
||
| type(torch_tensor), | intent(in) | :: | tensor2 |
Second tensor for the subtraction |
Tensor to hold the difference
Deallocates an array of tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(inout), | dimension(:) | :: | tensor_array |
Array of tensors to deallocate |
Overloads assignment operator for tensors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(inout) | :: | output |
Tensor to assign values to |
||
| type(torch_tensor), | intent(in) | :: | input |
Tensor whose values are to be used |
Performs back-propagation on a Torch Tensor, given some external gradient.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to compute gradients of |
||
| logical, | intent(in), | optional | :: | retain_graph |
Should the computational graph be retained? |
Deallocates a tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(inout) | :: | tensor |
Tensor to deallocate |
Returns a tensor with uninitialised values.
| 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, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int16 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int16 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int16 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int16 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int16 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type int8 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type int8 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type int8 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type int8 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type int8 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type real32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type real32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type real32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type real32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type real32 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(1) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 1 containing data of type real64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(2) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 2 containing data of type real64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(3) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 3 containing data of type real64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(4) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 4 containing data of type real64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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(kind=ftorch_int), | intent(in) | :: | layout(5) |
Control order of indices |
||
| integer(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Return a Torch tensor pointing to data_in array of rank 5 containing data of type real64 with default layout [1, 2, ..., n].
| 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(kind=c_int), | intent(in) | :: | device_type |
Device type the tensor will live on ( |
||
| integer, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
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, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Retrieves the gradient with respect to a Torch Tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(inout) | :: | gradient |
Tensor holding the gradient |
||
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to compute the gradient with respect to |
Overloads mean operator over the values in a tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(inout) | :: | output |
Tensor holding the averaged values |
||
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to average the values of |
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, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |
Prints the contents of a tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(torch_tensor), | intent(in) | :: | self |
Tensor to print the contents of |
Overloads summation operator over the values in a tensor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(inout) | :: | output |
Tensor holding the summed values |
||
| type(torch_tensor), | intent(in) | :: | tensor |
Tensor to sum the values of |
Moves a source_tensor tensor to a target tensor's device and dtype
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(torch_tensor), | intent(in) | :: | source_tensor |
Source tensor to be moved |
||
| type(torch_tensor), | intent(inout) | :: | target_tensor |
Target tensor with the desired device and dtype |
||
| logical, | intent(in), | optional | :: | non_blocking |
Whether to perform asynchronous copy |
Fills a tensor with the scalar value 0.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(torch_tensor), | intent(inout) | :: | tensor |
Tensor whose values are to be zeroed |
Resets a tensor's gradient to zero.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(torch_tensor), | intent(inout) | :: | tensor |
Tensor to zero the gradient of |
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, | intent(in), | optional | :: | device_index |
Device index for GPU devices |
|
| logical, | intent(in), | optional | :: | requires_grad |
Whether gradients need to be computed for the created tensor |