xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/mobile/compatibility/backport.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <c10/macros/Export.h>
4 #include <istream>
5 
6 namespace torch::jit {
7 
8 TORCH_API bool _backport_for_mobile(
9     std::istream& in,
10     std::ostream& out,
11     const int64_t to_version);
12 
13 TORCH_API bool _backport_for_mobile(
14     std::istream& in,
15     const std::string& output_filename,
16     const int64_t to_version);
17 
18 TORCH_API bool _backport_for_mobile(
19     const std::string& input_filename,
20     std::ostream& out,
21     const int64_t to_version);
22 
23 TORCH_API bool _backport_for_mobile(
24     const std::string& input_filename,
25     const std::string& output_filename,
26     const int64_t to_version);
27 
28 } // namespace torch::jit
29