Revert "Fix bug in flatbuffer deserialization"

This reverts commit 7e72c96b10.

Reverted https://github.com/pytorch/pytorch/pull/78344 on behalf of https://github.com/tugsbayasgalan due to as we need to land it in fbcode asap
This commit is contained in:
PyTorch MergeBot
2022-05-31 23:34:04 +00:00
parent b6c53f90b9
commit ceb93afe3f
2 changed files with 0 additions and 6 deletions
-2
View File
@@ -16,7 +16,6 @@
#include <torch/csrc/jit/mobile/module.h>
#include <torch/csrc/jit/mobile/parse_bytecode.h>
#include <torch/csrc/jit/mobile/parse_operators.h>
#include <torch/csrc/jit/operator_upgraders/upgraders.h>
#include <torch/csrc/jit/serialization/export.h>
#include <torch/csrc/jit/serialization/export_bytecode.h>
#include <torch/csrc/jit/serialization/flatbuffer_serializer.h>
@@ -838,7 +837,6 @@ TEST(FlatbufferTest, DuplicateSetState) {
auto buff = save_mobile_module_to_bytes(bc);
mobile::Module bc2 = parse_mobile_module(buff.data(), buff.size());
ASSERT_TRUE(torch::jit::is_upgraders_map_populated());
const auto methods2 = bc.get_methods();
ASSERT_EQ(methods2.size(), expected_n);
}