Skip to content

Commit 775eaae

Browse files
cmt0facebook-github-bot
authored andcommitted
Make Flat Tensor Map Usable By Clients (#12980)
Summary: This library needs to be used by clients to allow for program data separation. Additionally, the experimental/deprecated dependency needs to be removed. Reviewed By: lucylq, JacobSzwejbka Differential Revision: D79173718
1 parent f1510a2 commit 775eaae

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

extension/flat_tensor/targets.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ def define_common_targets():
88
srcs = [
99
"flat_tensor_data_map.cpp",
1010
],
11+
compiler_flags = [
12+
"-Wno-deprecated-declarations",
13+
],
1114
exported_headers = ["flat_tensor_data_map.h"],
1215
deps = [
1316
"//executorch/runtime/core:core",
@@ -21,6 +24,6 @@ def define_common_targets():
2124
"//executorch/extension/flat_tensor/serialize:generated_headers",
2225
],
2326
visibility = [
24-
"//executorch/...",
27+
"@EXECUTORCH_CLIENTS",
2528
],
2629
)

runtime/core/named_data_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace ET_RUNTIME_NAMESPACE {
2727
* Interface to access and retrieve data via name.
2828
* See executorch/extension/flat_tensor/ for an example.
2929
*/
30-
class ET_EXPERIMENTAL NamedDataMap {
30+
class NamedDataMap {
3131
public:
3232
virtual ~NamedDataMap() = default;
3333
/**

runtime/core/tensor_layout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace ET_RUNTIME_NAMESPACE {
1919
/**
2020
* Describes the layout of a tensor.
2121
*/
22-
class ET_EXPERIMENTAL TensorLayout final {
22+
class TensorLayout final {
2323
public:
2424
TensorLayout() = delete;
2525

0 commit comments

Comments
 (0)