mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
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:
committed by
PyTorch MergeBot
parent
b4b60c2a2e
commit
f9533560cc
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user