pytorch/torch/csrc/jit/passes/autocast.h
cyy c764ef6d53 [9/N] Fix clang-tidy warnings in jit (#132010)
Follows  #131997

Co-authored-by: Aaron Gokaslan <aaronGokaslan@gmail.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/132010
Approved by: https://github.com/Skylion007
2024-07-29 18:38:35 +00:00

14 lines
242 B
C++

#pragma once
#include <torch/csrc/jit/ir/ir.h>
namespace torch::jit {
TORCH_API void Autocast(const std::shared_ptr<Graph>& graph);
TORCH_API bool setAutocastMode(bool value);
TORCH_API bool autocastEnabled();
} // namespace torch::jit