Skip to content

Commit abc79b9

Browse files
committed
chore: make memorySizeLowerBound a private member
1 parent ce3a2bb commit abc79b9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • packages/react-native-executorch/common/rnexecutorch/models

packages/react-native-executorch/common/rnexecutorch/models/BaseModel.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <jsi/jsi.h>
99
#include <rnexecutorch/host_objects/JSTensorViewIn.h>
1010
#include <rnexecutorch/host_objects/JSTensorViewOut.h>
11-
#include <rnexecutorch/jsi/OwningArrayBuffer.h>
1211

1312
namespace rnexecutorch {
1413
using namespace facebook;
@@ -23,7 +22,6 @@ class BaseModel {
2322
std::vector<int32_t> getInputShape(std::string method_name, int index);
2423
std::vector<std::vector<int32_t>>
2524
getAllInputShapes(std::string methodName = "forward");
26-
2725
std::vector<std::shared_ptr<JSTensorViewOut>>
2826
forwardJS(std::vector<JSTensorViewIn> tensorViewVec);
2927

@@ -35,9 +33,9 @@ class BaseModel {
3533
// (unnecessary copies instead of working on JS memory). In this case
3634
// CallInvoker can be used to get jsi::Runtime, and use it in a safe manner.
3735
std::shared_ptr<react::CallInvoker> callInvoker;
38-
std::size_t memorySizeLowerBound{0};
3936

4037
private:
38+
std::size_t memorySizeLowerBound{0};
4139
std::unique_ptr<executorch::extension::Module> module;
4240
std::vector<int32_t> getTensorShape(const executorch::aten::Tensor &tensor);
4341
};

0 commit comments

Comments
 (0)