xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/passes/autocast.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 
2 #pragma once
3 
4 #include <torch/csrc/jit/ir/ir.h>
5 
6 namespace torch::jit {
7 
8 TORCH_API void Autocast(const std::shared_ptr<Graph>& graph);
9 
10 TORCH_API bool setAutocastMode(bool value);
11 TORCH_API bool autocastEnabled();
12 
13 } // namespace torch::jit
14