(git:1f9fd2c)
Loading...
Searching...
No Matches
torch_api::torch_tensor_from_array Interface Reference

Public Member Functions

subroutine torch_tensor_from_array_int32_1d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_float_1d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_int64_1d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_double_1d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_int32_2d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_float_2d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_int64_2d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_double_2d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_int32_3d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_float_3d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_int64_3d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 
subroutine torch_tensor_from_array_double_3d (tensor, source, requires_grad)
 Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.
 

Detailed Description

Definition at line 44 of file torch_api.F.

Member Function/Subroutine Documentation

◆ torch_tensor_from_array_int32_1d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_int32_1d ( type(torch_tensor_type), intent(inout)  tensor,
integer(kind=int_4), dimension(:), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 112 of file torch_api.F.

◆ torch_tensor_from_array_float_1d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_float_1d ( type(torch_tensor_type), intent(inout)  tensor,
real(sp), dimension(:), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 205 of file torch_api.F.

◆ torch_tensor_from_array_int64_1d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_int64_1d ( type(torch_tensor_type), intent(inout)  tensor,
integer(kind=int_8), dimension(:), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 298 of file torch_api.F.

◆ torch_tensor_from_array_double_1d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_double_1d ( type(torch_tensor_type), intent(inout)  tensor,
real(dp), dimension(:), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 391 of file torch_api.F.

◆ torch_tensor_from_array_int32_2d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_int32_2d ( type(torch_tensor_type), intent(inout)  tensor,
integer(kind=int_4), dimension(:, :), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 484 of file torch_api.F.

◆ torch_tensor_from_array_float_2d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_float_2d ( type(torch_tensor_type), intent(inout)  tensor,
real(sp), dimension(:, :), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 579 of file torch_api.F.

◆ torch_tensor_from_array_int64_2d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_int64_2d ( type(torch_tensor_type), intent(inout)  tensor,
integer(kind=int_8), dimension(:, :), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 674 of file torch_api.F.

◆ torch_tensor_from_array_double_2d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_double_2d ( type(torch_tensor_type), intent(inout)  tensor,
real(dp), dimension(:, :), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 769 of file torch_api.F.

◆ torch_tensor_from_array_int32_3d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_int32_3d ( type(torch_tensor_type), intent(inout)  tensor,
integer(kind=int_4), dimension(:, :, :), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 864 of file torch_api.F.

◆ torch_tensor_from_array_float_3d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_float_3d ( type(torch_tensor_type), intent(inout)  tensor,
real(sp), dimension(:, :, :), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 961 of file torch_api.F.

◆ torch_tensor_from_array_int64_3d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_int64_3d ( type(torch_tensor_type), intent(inout)  tensor,
integer(kind=int_8), dimension(:, :, :), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 1058 of file torch_api.F.

◆ torch_tensor_from_array_double_3d()

subroutine torch_api::torch_tensor_from_array::torch_tensor_from_array_double_3d ( type(torch_tensor_type), intent(inout)  tensor,
real(dp), dimension(:, :, :), intent(in), allocatable  source,
logical, intent(in), optional  requires_grad 
)

Creates a Torch tensor from an array. The passed array has to outlive the tensor! The source must be an ALLOCATABLE to prevent passing a temporary array.

Author
Ole Schuett

Definition at line 1155 of file torch_api.F.


The documentation for this interface was generated from the following file: