File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ def define_common_targets():
41
41
"defines.h" ,
42
42
"error.h" ,
43
43
"freeable_buffer.h" ,
44
- "named_data_map.h" ,
45
44
"result.h" ,
46
45
"span.h" ,
47
46
],
@@ -118,6 +117,7 @@ def define_common_targets():
118
117
],
119
118
)
120
119
120
+
121
121
runtime .cxx_library (
122
122
name = "tag" ,
123
123
srcs = ["tag.cpp" ],
@@ -133,6 +133,20 @@ def define_common_targets():
133
133
],
134
134
)
135
135
136
+ runtime .cxx_library (
137
+ name = "named_data_map" ,
138
+ exported_headers = [
139
+ "named_data_map.h" ,
140
+ ],
141
+ visibility = [
142
+ "//executorch/..." ,
143
+ "@EXECUTORCH_CLIENTS" ,
144
+ ],
145
+ exported_deps = [
146
+ ":tensor_layout" ,
147
+ ],
148
+ )
149
+
136
150
runtime .cxx_library (
137
151
name = "tensor_layout" ,
138
152
srcs = ["tensor_layout.cpp" ],
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Result<size_t> calculate_nbytes(
30
30
}
31
31
} // namespace
32
32
33
- Result<TensorLayout> TensorLayout::create (
33
+ Result<const TensorLayout> TensorLayout::create (
34
34
Span<const int32_t > sizes,
35
35
Span<const uint8_t > dim_order,
36
36
executorch::aten::ScalarType scalar_type) {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class ET_EXPERIMENTAL TensorLayout final {
33
33
* @param[in] scalar_type The scalar type of the tensor.
34
34
* @return A Result containing the TensorLayout on success, or an error.
35
35
*/
36
- static executorch::runtime::Result<TensorLayout> create (
36
+ static executorch::runtime::Result<const TensorLayout> create (
37
37
Span<const int32_t > sizes,
38
38
Span<const uint8_t > dim_order,
39
39
executorch::aten::ScalarType scalar_type);
You can’t perform that action at this time.
0 commit comments