PyTorch torch.compiled_with_cxx11_abi 関数
torch.compiled_with_cxx11_abiPyTorch でコンパイルオプションをチェックするための関数です。PyTorch が C++11 ABI でコンパイルされているかどうかを返します。
関数定義
torch.compiled_with_cxx11_abi()
使用例
実例
import torch
# PyTorch のコンパイルオプションをチェック
is_cxx11 = torch.compiled_with_cxx11_abi()
print(f"Compiled with C++11 ABI: {is_cxx11}")
# PyTorch のコンパイルオプションをチェック
is_cxx11 = torch.compiled_with_cxx11_abi()
print(f"Compiled with C++11 ABI: {is_cxx11}")
その他の拡張
Pytorch torch リファレンスマニュアル