Skip to content

Commit 2120c63

Browse files
authored
Merge branch 'main' into sigmoid_flaky_fix
2 parents 5ba59c2 + 6371758 commit 2120c63

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

backends/arm/scripts/build_executorch.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ cmake \
137137

138138
echo "[$(basename $0)] Configured CMAKE"
139139

140-
cmake --build ${et_build_dir} --parallel --target install --config ${build_type} --
140+
cmake --build ${et_build_dir} -j$(nproc) --target install --config ${build_type} --
141141

142142
set +x
143143

extension/module/module.h

+4-6
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class Module {
110110
Module& operator=(const Module&) = delete;
111111
Module(Module&&) = delete;
112112
Module& operator=(Module&&) = delete;
113-
113+
virtual ~Module() = default;
114114
/**
115115
* Loads the program if needed.
116116
*
@@ -119,8 +119,7 @@ class Module {
119119
*
120120
* @returns An Error to indicate success or failure of the loading process.
121121
*/
122-
ET_NODISCARD
123-
runtime::Error load(
122+
ET_NODISCARD virtual runtime::Error load(
124123
const Program::Verification verification =
125124
Program::Verification::Minimal);
126125

@@ -129,7 +128,7 @@ class Module {
129128
*
130129
* @returns true if the program is loaded, false otherwise.
131130
*/
132-
inline bool is_loaded() const {
131+
virtual inline bool is_loaded() const {
133132
return program_ != nullptr;
134133
}
135134

@@ -242,8 +241,7 @@ class Module {
242241
* @returns A Result object containing either a vector of output values
243242
* from the method or an error to indicate failure.
244243
*/
245-
ET_NODISCARD
246-
runtime::Result<std::vector<runtime::EValue>> execute(
244+
ET_NODISCARD virtual runtime::Result<std::vector<runtime::EValue>> execute(
247245
const std::string& method_name,
248246
const std::vector<runtime::EValue>& input_values);
249247

0 commit comments

Comments
 (0)