Procedures

ProcedureLocationProcedure TypeDescription
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_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_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_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_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_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_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_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_zeros ftorch Subroutine

Returns a tensor filled with the scalar value 0.