PyTorch torch.compiled_with_cxx11_abi 関数


Pytorch torch 参考手册Pytorch torch リファレンスマニュアル

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 torch 参考手册Pytorch torch リファレンスマニュアル

その他の拡張