1 #include <torch/csrc/jit/serialization/flatbuffer_serializer_jit.h> 2 3 #ifdef FLATBUFFERS_VERSION_MAJOR 4 #error "flatbuffer_serializer_jit.h must not include any flatbuffers headers" 5 #endif // FLATBUFFERS_VERSION_MAJOR 6 7 #include <torch/csrc/jit/mobile/file_format.h> 8 #include <torch/csrc/jit/mobile/flatbuffer_loader.h> 9 #include <torch/csrc/jit/operator_upgraders/upgraders_entry.h> 10 #include <torch/csrc/jit/serialization/export.h> 11 #include <torch/csrc/jit/serialization/export_bytecode.h> 12 #include <torch/csrc/jit/serialization/flatbuffer_serializer.h> 13 #include <torch/csrc/jit/serialization/import.h> 14 15 namespace torch::jit { 16 register_flatbuffer_all()17bool register_flatbuffer_all() { 18 return true; 19 } 20 21 } // namespace torch::jit 22