3 #include <torch/csrc/WindowsTorchApiMacro.h> 41 const std::string& key,
43 bool is_buffer =
false);
47 void write(
const std::string& key,
OutputArchive& nested_archive);
51 void save_to(
const std::string& filename);
55 void save_to(std::ostream& stream);
60 template <
typename... Ts>
62 write(std::forward<Ts>(ts)...);
66 std::shared_ptr<jit::script::Module> module_;
void operator()(Ts &&...ts)
Forwards all arguments to write().
Flush-To-Zero and Denormals-Are-Zero mode.