PyTorch torch.compiled_with_cxx11_abi Function


Pytorch torch 参考手册PyTorch torch Reference Manual

torch.compiled_with_cxx11_abiIs a function in PyTorch used to check compilation options. Returns whether PyTorch was compiled with C++11 ABI.

Function Definition

torch.compiled_with_cxx11_abi()

Usage Example

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 参考手册PyTorch torch Reference Manual

Other Extensions