File tree Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,6 @@ def define_common_targets():
11
11
],
12
12
)
13
13
14
- runtime .cxx_library (
15
- name = "stats" ,
16
- exported_headers = [
17
- "stats.h" ,
18
- "util.h" ,
19
- ],
20
- visibility = [
21
- "@EXECUTORCH_CLIENTS" ,
22
- ],
23
- )
24
-
25
14
runtime .cxx_library (
26
15
name = "constants" ,
27
16
exported_headers = [
@@ -35,6 +24,21 @@ def define_common_targets():
35
24
for aten in get_aten_mode_options ():
36
25
aten_suffix = "_aten" if aten else ""
37
26
27
+ runtime .cxx_library (
28
+ name = "stats" + aten_suffix ,
29
+ exported_headers = [
30
+ "stats.h" ,
31
+ "util.h" ,
32
+ ],
33
+ visibility = [
34
+ "@EXECUTORCH_CLIENTS" ,
35
+ ],
36
+ exported_deps = [
37
+ ":constants" ,
38
+ "//executorch/extension/module:module" + aten_suffix ,
39
+ ],
40
+ )
41
+
38
42
runtime .cxx_library (
39
43
name = "text_decoder_runner" + aten_suffix ,
40
44
exported_headers = ["text_decoder_runner.h" ],
@@ -43,7 +47,7 @@ def define_common_targets():
43
47
"@EXECUTORCH_CLIENTS" ,
44
48
],
45
49
exported_deps = [
46
- ":stats" ,
50
+ ":stats" + aten_suffix ,
47
51
"//executorch/kernels/portable/cpu/util:arange_util" + aten_suffix ,
48
52
"//executorch/extension/llm/sampler:sampler" + aten_suffix ,
49
53
"//executorch/extension/llm/runner/io_manager:io_manager" + aten_suffix ,
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
#pragma once
10
+ #include < executorch/extension/llm/runner/constants.h>
11
+ #include < executorch/extension/module/module.h>
10
12
#include < executorch/extension/tensor/tensor.h>
11
13
#include < executorch/runtime/platform/compiler.h>
12
14
#include < stdio.h>
13
15
#include < time.h>
14
16
#include < cctype>
17
+ #include < vector>
15
18
#if defined(__linux__) || defined(__ANDROID__) || defined(__unix__)
16
19
#include < sys/resource.h>
17
20
#endif
You can’t perform that action at this time.
0 commit comments