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

get_rank ftorch Function

Determines the rank of a tensor.

get_shape ftorch Function

Determines the shape of a tensor.

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_array_delete ftorch Subroutine

Deallocates an array of tensors.

torch_tensor_delete ftorch Subroutine

Deallocates a tensor.

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_ones ftorch Subroutine

Returns a tensor filled with the scalar value 1.

torch_tensor_print ftorch Subroutine

Prints the contents of a tensor.

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