Procedures

ProcedureLocationProcedure TypeDescription
assert_allclose ftorch_test_utils Interface
assert_allclose_real32_1d ftorch_test_utils Function

Asserts that two real32-valued 1D arrays coincide to a given relative tolerance

assert_allclose_real32_2d ftorch_test_utils Function

Asserts that two real32-valued 2D arrays coincide to a given relative tolerance

assert_allclose_real64_1d ftorch_test_utils Function

Asserts that two real64-valued 1D arrays coincide to a given relative tolerance

assert_allclose_real64_2d ftorch_test_utils Function

Asserts that two real64-valued 2D arrays coincide to a given relative tolerance

assert_isclose ftorch_test_utils Interface
assert_isclose_real32 ftorch_test_utils Function

Asserts that two real32 values coincide to a given relative tolerance

assert_isclose_real64 ftorch_test_utils Function

Asserts that two real64 values coincide to a given relative tolerance

assignment (=) ftorch Interface
get_rank ftorch Function

Determines the rank of a tensor.

get_shape ftorch Function

Determines the shape of a tensor.

operator (*) ftorch Interface
operator (**) ftorch Interface
operator (+) ftorch Interface
operator (-) ftorch Interface
operator (/) ftorch Interface
test_print ftorch_test_utils Subroutine

Print the result of a test to the terminal

torch_delete ftorch Interface

Interface for deleting generic torch objects

torch_from_blob_c ftorch Interface
torch_model_delete ftorch Subroutine

Deallocates a TorchScript model

torch_model_forward ftorch Subroutine

Performs a forward pass of the model with the input tensors

torch_model_load ftorch Subroutine

Loads a TorchScript nn.module (pre-trained PyTorch model saved with TorchScript)

torch_tensor_add ftorch Function

Overloads addition operator for two tensors.

torch_tensor_array_delete ftorch Subroutine

Deallocates an array of tensors.

torch_tensor_assign ftorch Subroutine

Overloads assignment operator for tensors.

torch_tensor_delete ftorch Subroutine

Deallocates a tensor.

torch_tensor_divide ftorch Function

Overloads division operator for two tensors.

torch_tensor_from_array ftorch Interface

Interface for directing torch_tensor_from_array to possible input types and ranks

torch_tensor_from_array_int16_1d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 1 containing data of type int16

torch_tensor_from_array_int16_2d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 2 containing data of type int16

torch_tensor_from_array_int16_3d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 3 containing data of type int16

torch_tensor_from_array_int16_4d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 4 containing data of type int16

torch_tensor_from_array_int16_5d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 5 containing data of type int16

torch_tensor_from_array_int32_1d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 1 containing data of type int32

torch_tensor_from_array_int32_2d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 2 containing data of type int32

torch_tensor_from_array_int32_3d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 3 containing data of type int32

torch_tensor_from_array_int32_4d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 4 containing data of type int32

torch_tensor_from_array_int32_5d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 5 containing data of type int32

torch_tensor_from_array_int64_1d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 1 containing data of type int64

torch_tensor_from_array_int64_2d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 2 containing data of type int64

torch_tensor_from_array_int64_3d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 3 containing data of type int64

torch_tensor_from_array_int64_4d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 4 containing data of type int64

torch_tensor_from_array_int64_5d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 5 containing data of type int64

torch_tensor_from_array_int8_1d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 1 containing data of type int8

torch_tensor_from_array_int8_2d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 2 containing data of type int8

torch_tensor_from_array_int8_3d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 3 containing data of type int8

torch_tensor_from_array_int8_4d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 4 containing data of type int8

torch_tensor_from_array_int8_5d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 5 containing data of type int8

torch_tensor_from_array_real32_1d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 1 containing data of type real32

torch_tensor_from_array_real32_2d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 2 containing data of type real32

torch_tensor_from_array_real32_3d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 3 containing data of type real32

torch_tensor_from_array_real32_4d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 4 containing data of type real32

torch_tensor_from_array_real32_5d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 5 containing data of type real32

torch_tensor_from_array_real64_1d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 1 containing data of type real64

torch_tensor_from_array_real64_2d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 2 containing data of type real64

torch_tensor_from_array_real64_3d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 3 containing data of type real64

torch_tensor_from_array_real64_4d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 4 containing data of type real64

torch_tensor_from_array_real64_5d ftorch Subroutine

Return a Torch tensor pointing to data_in array of rank 5 containing data of type real64

torch_tensor_from_blob ftorch Subroutine

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.

torch_tensor_get_device_index ftorch Function

Determines the device index of a tensor.

torch_tensor_multiply ftorch Function

Overloads multiplication operator for two tensors.

torch_tensor_ones ftorch Subroutine

Returns a tensor filled with the scalar value 1.

torch_tensor_postdivide_int16 ftorch Function

Overloads division operator for a tensor and a scalar of type int16.

torch_tensor_postdivide_int32 ftorch Function

Overloads division operator for a tensor and a scalar of type int32.

torch_tensor_postdivide_int64 ftorch Function

Overloads division operator for a tensor and a scalar of type int64.

torch_tensor_postdivide_int8 ftorch Function

Overloads division operator for a tensor and a scalar of type int8.

torch_tensor_postdivide_real32 ftorch Function

Overloads division operator for a tensor and a scalar of type real32.

torch_tensor_postdivide_real64 ftorch Function

Overloads division operator for a tensor and a scalar of type real64.

torch_tensor_postmultiply_int16 ftorch Function

Overloads multiplication operator for a tensor and a scalar of type int16.

torch_tensor_postmultiply_int32 ftorch Function

Overloads multiplication operator for a tensor and a scalar of type int32.

torch_tensor_postmultiply_int64 ftorch Function

Overloads multiplication operator for a tensor and a scalar of type int64.

torch_tensor_postmultiply_int8 ftorch Function

Overloads multiplication operator for a tensor and a scalar of type int8.

torch_tensor_postmultiply_real32 ftorch Function

Overloads multiplication operator for a tensor and a scalar of type real32.

torch_tensor_postmultiply_real64 ftorch Function

Overloads multiplication operator for a tensor and a scalar of type real64.

torch_tensor_power_int16 ftorch Function

Overloads exponentiation operator for a tensor and a scalar of type int16

torch_tensor_power_int32 ftorch Function

Overloads exponentiation operator for a tensor and a scalar of type int32

torch_tensor_power_int64 ftorch Function

Overloads exponentiation operator for a tensor and a scalar of type int64

torch_tensor_power_int8 ftorch Function

Overloads exponentiation operator for a tensor and a scalar of type int8

torch_tensor_power_real32 ftorch Function

Overloads exponentiation operator for a tensor and a scalar of type real32

torch_tensor_power_real64 ftorch Function

Overloads exponentiation operator for a tensor and a scalar of type real64

torch_tensor_premultiply_int16 ftorch Function

Overloads multiplication operator for a scalar of type int16 and a tensor.

torch_tensor_premultiply_int32 ftorch Function

Overloads multiplication operator for a scalar of type int32 and a tensor.

torch_tensor_premultiply_int64 ftorch Function

Overloads multiplication operator for a scalar of type int64 and a tensor.

torch_tensor_premultiply_int8 ftorch Function

Overloads multiplication operator for a scalar of type int8 and a tensor.

torch_tensor_premultiply_real32 ftorch Function

Overloads multiplication operator for a scalar of type real32 and a tensor.

torch_tensor_premultiply_real64 ftorch Function

Overloads multiplication operator for a scalar of type real64 and a tensor.

torch_tensor_print ftorch Subroutine

Prints the contents of a tensor.

torch_tensor_subtract ftorch Function

Overloads subtraction operator for two tensors.

torch_tensor_to_array ftorch Interface

Interface for directing torch_tensor_to_array to possible input types and ranks

torch_tensor_to_array_int16_1d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 1 and data type int16

torch_tensor_to_array_int16_2d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 2 and data type int16

torch_tensor_to_array_int16_3d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 3 and data type int16

torch_tensor_to_array_int16_4d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 4 and data type int16

torch_tensor_to_array_int16_5d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 5 and data type int16

torch_tensor_to_array_int32_1d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 1 and data type int32

torch_tensor_to_array_int32_2d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 2 and data type int32

torch_tensor_to_array_int32_3d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 3 and data type int32

torch_tensor_to_array_int32_4d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 4 and data type int32

torch_tensor_to_array_int32_5d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 5 and data type int32

torch_tensor_to_array_int64_1d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 1 and data type int64

torch_tensor_to_array_int64_2d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 2 and data type int64

torch_tensor_to_array_int64_3d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 3 and data type int64

torch_tensor_to_array_int64_4d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 4 and data type int64

torch_tensor_to_array_int64_5d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 5 and data type int64

torch_tensor_to_array_int8_1d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 1 and data type int8

torch_tensor_to_array_int8_2d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 2 and data type int8

torch_tensor_to_array_int8_3d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 3 and data type int8

torch_tensor_to_array_int8_4d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 4 and data type int8

torch_tensor_to_array_int8_5d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 5 and data type int8

torch_tensor_to_array_real32_1d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 1 and data type real32

torch_tensor_to_array_real32_2d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 2 and data type real32

torch_tensor_to_array_real32_3d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 3 and data type real32

torch_tensor_to_array_real32_4d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 4 and data type real32

torch_tensor_to_array_real32_5d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 5 and data type real32

torch_tensor_to_array_real64_1d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 1 and data type real64

torch_tensor_to_array_real64_2d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 2 and data type real64

torch_tensor_to_array_real64_3d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 3 and data type real64

torch_tensor_to_array_real64_4d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 4 and data type real64

torch_tensor_to_array_real64_5d ftorch Subroutine

Return the array data associated with a Torch tensor of rank 5 and data type real64

torch_tensor_zeros ftorch Subroutine

Returns a tensor filled with the scalar value 0.

torch_to_blob_c ftorch Interface