Use flatbuffer of alternate namespace (#82952)

Summary: Minimal change to make use of flatbuffer with fbsource namespace.

Test Plan: existing unit tests

Differential Revision: D38494999

Pull Request resolved: https://github.com/pytorch/pytorch/pull/82952
Approved by: https://github.com/cccclai
This commit is contained in:
Han Qi (qihqi)
2022-08-09 07:40:59 +00:00
committed by PyTorch MergeBot
parent b4b60c2a2e
commit f9533560cc
4 changed files with 17 additions and 6 deletions
+3
View File
@@ -1800,6 +1800,9 @@ TEST(FlatbufferUpgraderTest, DivScalarInplaceIntV2) {
namespace torch {
namespace jit {
#if defined(FBCODE_CAFFE2) or defined(FB_XPLAT_BUILD)
namespace flatbuffers = flatbuffers_fbsource;
#endif
/**
* An Allocator that can only deallocate (using delete []), counting
* the number of times that it has been asked to deallocate.