mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
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
14 lines
242 B
C++
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
|