![]() |
(git:06f838d)
|
Public Member Functions | |
| subroutine | torch_tensor_reset_from_array_double_1d (tensor, source, requires_grad) |
| Reuses or creates a device leaf tensor and copies data into it. The source must be an ALLOCATABLE to prevent passing a temporary array. | |
| subroutine | torch_tensor_reset_from_array_double_2d (tensor, source, requires_grad) |
| Reuses or creates a device leaf tensor and copies data into it. The source must be an ALLOCATABLE to prevent passing a temporary array. | |
| subroutine | torch_tensor_reset_from_array_double_3d (tensor, source, requires_grad) |
| Reuses or creates a device leaf tensor and copies data into it. The source must be an ALLOCATABLE to prevent passing a temporary array. | |
Definition at line 59 of file torch_api.F.
| subroutine torch_api::torch_tensor_reset_from_array::torch_tensor_reset_from_array_double_1d | ( | type(torch_tensor_type), intent(inout) | tensor, |
| real(dp), dimension(:), intent(in), allocatable | source, | ||
| logical, intent(in), optional | requires_grad | ||
| ) |
Reuses or creates a device leaf tensor and copies data into it. The source must be an ALLOCATABLE to prevent passing a temporary array.
Definition at line 1251 of file torch_api.F.
| subroutine torch_api::torch_tensor_reset_from_array::torch_tensor_reset_from_array_double_2d | ( | type(torch_tensor_type), intent(inout) | tensor, |
| real(dp), dimension(:, :), intent(in), allocatable | source, | ||
| logical, intent(in), optional | requires_grad | ||
| ) |
Reuses or creates a device leaf tensor and copies data into it. The source must be an ALLOCATABLE to prevent passing a temporary array.
Definition at line 1296 of file torch_api.F.
| subroutine torch_api::torch_tensor_reset_from_array::torch_tensor_reset_from_array_double_3d | ( | type(torch_tensor_type), intent(inout) | tensor, |
| real(dp), dimension(:, :, :), intent(in), allocatable | source, | ||
| logical, intent(in), optional | requires_grad | ||
| ) |
Reuses or creates a device leaf tensor and copies data into it. The source must be an ALLOCATABLE to prevent passing a temporary array.
Definition at line 1342 of file torch_api.F.