Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PyTorch torch.compiled_with_cxx11_abi function

PyTorch torch.compiled_with_cxx11_abi function


PyTorch torch reference manual PyTorch torch reference manual

torch.compiled_with_cxx11_abi is a function in PyTorch used to check compilation options. It returns whether PyTorch was compiled with the C++11 ABI.

Function definition

torch.compiled_with_cxx11_abi()


Usage examples

Example

import

torch

Check PyTorch compilation options

is_cxx11

=

torch.

compiled_with_cxx11_abi

(

)

print

(

f

"Compiled with C++11 ABI: {is_cxx11}"

)


PyTorch torch reference manual PyTorch torch reference manual