Expand description
Utilities to link libtorch FFI interface.
Re-exports§
Modules§
- cuda
- CUDA related types and functions.
- env
- Environment variables and constatns.
- library
- Libtorch installation and capabilities.
Functions§
- build_
cpp - Construct the cc::Build to compile C++ source code.
- build_
cpp_ ext - Construct the cc::Build to compile C++ source code with additional options.
- build_
cuda - Construct the cc::Build to compile CUDA source code.
- build_
cuda_ ext - Construct the cc::Build to compile CUDA source code with additional options.
- check_
cxx11_ abi - Return true of host system uses C++11 ABI. It is used to set the
_GLIBCXX_USE_CXX11_ABI
macro. - find_
or_ download_ libtorch_ dir - Locate the libtorch directory, or try to download libtorch if it does not exist.
- libtorch_
url - Generates the libtorch download URL according to host operating system.
- probe_
libtorch - Probe the installation directory of libtorch and its capabilities.