Skip to content

Commit

Permalink
Temp fix for upgrader (pytorch#78589)
Browse files Browse the repository at this point in the history
  • Loading branch information
tugsbayasgalan authored and pytorchmergebot committed Jun 1, 2022
1 parent 41e2611 commit 1f680a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions torch/csrc/jit/serialization/flatbuffer_serializer_jit.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <torch/csrc/jit/serialization/flatbuffer_serializer_jit.h>

#include <torch/csrc/jit/mobile/flatbuffer_loader.h>
#include <torch/csrc/jit/operator_upgraders/upgraders_entry.h>
#include <torch/csrc/jit/serialization/export.h>
#include <torch/csrc/jit/serialization/export_bytecode.h>
#include <torch/csrc/jit/serialization/flatbuffer_serializer.h>
Expand All @@ -14,6 +15,9 @@ Module parse_and_initialize_jit_module(
size_t size,
ExtraFilesMap& extra_files,
c10::optional<at::Device> device) {
#if ENABLE_UPGRADERS
populate_upgraders_graph_map();
#endif
auto* flatbuffer_module = mobile::serialization::GetMutableModule(data.get());
FlatbufferLoader loader;
mobile::Module mobilem = loader.parseModule(flatbuffer_module);
Expand Down

0 comments on commit 1f680a2

Please sign in to comment.