File tree Expand file tree Collapse file tree 18 files changed +4
-98
lines changed
backends/cadence/cadence_runner
apple/coreml/executor_runner
exir/backend/test/demos/rpc
core/exec_aten/testing_util
shim/xplat/executorch/extension/pybindings Expand file tree Collapse file tree 18 files changed +4
-98
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,5 @@ def define_common_targets():
25
25
"fbsource//xplat/executorch/extension/data_loader:buffer_data_loader" ,
26
26
"fbsource//xplat/executorch/kernels/portable:generated_lib" ,
27
27
"fbsource//xplat/executorch/runtime/executor:program" ,
28
- "fbsource//xplat/executorch/util:util" ,
29
28
],
30
29
)
Original file line number Diff line number Diff line change @@ -964,8 +964,7 @@ INPUT = ../runtime/executor/memory_manager.h \
964
964
../runtime/core/tensor_shape_dynamism.h \
965
965
../runtime/platform/compiler.h \
966
966
../runtime/executor/ \
967
- ../runtime/platform/ \
968
- ../util/
967
+ ../runtime/platform/
969
968
970
969
971
970
Original file line number Diff line number Diff line change 14
14
#import < executorch/runtime/platform/log.h>
15
15
#import < executorch/runtime/platform/runtime.h>
16
16
#import < executorch/devtools/etdump/etdump_flatcc.h>
17
- #import < executorch/util/util.h>
18
17
#import < memory>
19
18
#import < numeric>
20
19
#import < string>
Original file line number Diff line number Diff line change 18
18
#include < executorch/runtime/platform/log.h>
19
19
#include < executorch/runtime/platform/profiler.h>
20
20
#include < executorch/runtime/platform/runtime.h>
21
- #include < executorch/util/util.h>
22
21
23
22
#include " LlamaConfig.h"
24
23
#include " LlamaModelChunk.h"
@@ -344,4 +343,4 @@ void LlamaModelChunk::InitCache() {
344
343
}
345
344
}
346
345
347
- } // namespace torch::executor
346
+ } // namespace torch::executor
Original file line number Diff line number Diff line change 19
19
#include < executorch/runtime/platform/log.h>
20
20
#include < executorch/runtime/platform/profiler.h>
21
21
#include < executorch/runtime/platform/runtime.h>
22
- #include < executorch/util/util.h>
23
22
24
23
#include " LlamaConfig.h"
25
24
#include " ModelChunk.h"
@@ -136,4 +135,4 @@ class LlamaModelChunk : public ModelChunk {
136
135
size_t mCurrentTokenIndex = 0 ;
137
136
};
138
137
139
- } // namespace torch::executor
138
+ } // namespace torch::executor
Original file line number Diff line number Diff line change 19
19
#include < executorch/runtime/platform/log.h>
20
20
#include < executorch/runtime/platform/profiler.h>
21
21
#include < executorch/runtime/platform/runtime.h>
22
- #include < executorch/util/util.h>
23
22
24
23
#define ENSURE_INIT \
25
24
ET_CHECK_MSG (Initialized(), "Error: Model chunk not initialized.");
@@ -573,4 +572,4 @@ void ModelChunk::ReleaseModelInstance(void* modelInstance) {
573
572
}
574
573
}
575
574
576
- } // namespace torch::executor
575
+ } // namespace torch::executor
Original file line number Diff line number Diff line change 60
60
#include < executorch/runtime/platform/log.h>
61
61
#include < executorch/runtime/platform/profiler.h>
62
62
#include < executorch/runtime/platform/runtime.h>
63
- #include < executorch/util/util.h>
64
63
65
64
#include " llama_runner/LlamaConfig.h"
66
65
#include " llama_runner/LlamaRuntime.h"
Original file line number Diff line number Diff line change 27
27
#include < executorch/runtime/platform/log.h>
28
28
#include < executorch/runtime/platform/profiler.h>
29
29
#include < executorch/runtime/platform/runtime.h>
30
- #include < executorch/util/util.h>
31
30
32
31
#include < gflags/gflags.h>
33
32
Original file line number Diff line number Diff line change 29
29
#include < executorch/runtime/executor/program.h>
30
30
#include < executorch/runtime/platform/log.h>
31
31
#include < executorch/runtime/platform/runtime.h>
32
- #include < executorch/util/util.h>
33
32
34
33
static uint8_t method_allocator_pool[4 * 1024U * 1024U ]; // 4MB
35
34
static constexpr size_t kBundledAllocatorPoolSize = 16 * 1024U ;
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ def define_common_targets():
19
19
"//executorch/runtime/executor:program" ,
20
20
"//executorch/extension/data_loader:file_data_loader" ,
21
21
"//executorch/extension/data_loader:buffer_data_loader" ,
22
- "//executorch/util:util" ,
23
22
"//executorch/devtools/etdump:etdump_flatcc" ,
24
23
"//executorch/devtools/bundled_program:runtime" ,
25
24
],
Original file line number Diff line number Diff line change 20
20
#include < executorch/runtime/core/exec_aten/util/tensor_util.h>
21
21
#include < executorch/runtime/executor/method.h>
22
22
#include < executorch/runtime/executor/program.h>
23
- #include < executorch/util/util.h>
24
23
25
24
namespace torch {
26
25
namespace executor {
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ def define_common_targets():
27
27
"//executorch/kernels/portable:generated_lib" ,
28
28
"//executorch/runtime/backend:interface" ,
29
29
"//executorch/extension/data_loader:buffer_data_loader" ,
30
- "//executorch/util:util" ,
31
30
] + MODELS_ATEN_OPS_LEAN_MODE_GENERATED_LIB ,
32
31
exported_deps = [
33
32
"//executorch/runtime/core:core" ,
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ def define_common_targets(is_fbcode = False):
25
25
],
26
26
deps = [
27
27
"//executorch/runtime/executor:program" ,
28
- "//executorch/util:util" ,
29
28
"//executorch/extension/data_loader:file_data_loader" ,
30
29
"//executorch/runtime/core/exec_aten/testing_util:tensor_util" ,
31
30
"//executorch/extension/evalue_util:print_evalue" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ def define_common_targets():
32
32
"//executorch/kernels/test/..." ,
33
33
"//executorch/runtime/core/test/..." ,
34
34
"//executorch/test/..." ,
35
- "//executorch/util/..." ,
36
35
"//executorch/backends/fb/qnnpack/test/..." ,
37
36
"//executorch/extension/kernel_util/test/..." ,
38
37
"@EXECUTORCH_CLIENTS" ,
Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ def define_common_targets(is_fbcode = False):
175
175
":managed_memory_manager" ,
176
176
"//executorch/runtime/executor:program" ,
177
177
"//executorch/runtime/kernel:operator_registry" ,
178
- "//executorch/util:util" ,
179
178
"//executorch/extension/data_loader:file_data_loader" ,
180
179
],
181
180
env = modules_env ,
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ PORTABLE_MODULE_DEPS = [
16
16
"//executorch/extension/data_loader:buffer_data_loader" ,
17
17
"//executorch/extension/data_loader:mmap_data_loader" ,
18
18
"//executorch/extension/memory_allocator:malloc_memory_allocator" ,
19
- "//executorch/util:util" ,
20
19
"//executorch/runtime/executor/test:test_backend_compiler_lib" ,
21
20
"//executorch/devtools/etdump:etdump_flatcc" ,
22
21
] + get_all_cpu_backend_targets ()
Original file line number Diff line number Diff line change @@ -7,26 +7,6 @@ def define_common_targets():
7
7
TARGETS and BUCK files that call this function.
8
8
"""
9
9
10
- for aten_mode in (True , False ):
11
- aten_suffix = ("_aten" if aten_mode else "" )
12
-
13
- # DEPRECATED: Remove this once all users have migrated to
14
- # extension/runner_util:inputs.
15
- runtime .cxx_library (
16
- name = "util" + aten_suffix ,
17
- srcs = [],
18
- exported_headers = ["util.h" ],
19
- visibility = [
20
- "//executorch/..." ,
21
- "@EXECUTORCH_CLIENTS" ,
22
- ],
23
- exported_deps = [
24
- "//executorch/extension/runner_util:inputs" + aten_suffix ,
25
- "//executorch/runtime/core:core" ,
26
- "//executorch/runtime/executor:program" + aten_suffix ,
27
- ],
28
- )
29
-
30
10
if not runtime .is_oss :
31
11
runtime .python_library (
32
12
name = "python_profiler" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments