PyTorch torch.get_deterministic_debug_mode 関数
torch.get_deterministic_debug_modePyTorch で決定性デバッグモードを取得するための関数です。
関数定義
torch.get_deterministic_debug_mode()
使用例
実例
import torch
# 現在の決定性デバッグモードを取得
mode = torch.get_deterministic_debug_mode()
print("現在の決定性デバッグモード:", mode)
# 現在の決定性デバッグモードを取得
mode = torch.get_deterministic_debug_mode()
print("現在の決定性デバッグモード:", mode)
戻り値の説明:
- 0 - オフ
- 1 - オン(警告のみ)
- 2 - オン(エラーを報告)
その他の拡張
Pytorch torch リファレンスマニュアル