Skip to content

Commit b3b9415

Browse files
authored
Remove ET_EXPERIMENTAL from program-data separation APIs
Differential Revision: D79206305 Pull Request resolved: pytorch#12981
1 parent 464a938 commit b3b9415

File tree

4 files changed

+3
-23
lines changed

4 files changed

+3
-23
lines changed

extension/flat_tensor/targets.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ def define_common_targets():
2121
"//executorch/extension/flat_tensor/serialize:generated_headers",
2222
],
2323
visibility = [
24-
"//executorch/...",
24+
"@EXECUTORCH_CLIENTS",
2525
],
2626
)

runtime/core/named_data_map.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88

99
#pragma once
1010

11-
#ifdef __GNUC__
12-
// Disable -Wdeprecated-declarations, as some builds use 'Werror'.
13-
#pragma GCC diagnostic push
14-
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
15-
#endif
16-
1711
#include <executorch/runtime/core/exec_aten/exec_aten.h>
1812
#include <executorch/runtime/core/freeable_buffer.h>
1913
#include <executorch/runtime/core/result.h>
@@ -27,7 +21,7 @@ namespace ET_RUNTIME_NAMESPACE {
2721
* Interface to access and retrieve data via name.
2822
* See executorch/extension/flat_tensor/ for an example.
2923
*/
30-
class ET_EXPERIMENTAL NamedDataMap {
24+
class NamedDataMap {
3125
public:
3226
virtual ~NamedDataMap() = default;
3327
/**
@@ -81,7 +75,3 @@ class ET_EXPERIMENTAL NamedDataMap {
8175

8276
} // namespace ET_RUNTIME_NAMESPACE
8377
} // namespace executorch
84-
85-
#ifdef __GNUC__
86-
#pragma GCC diagnostic pop
87-
#endif

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

runtime/executor/program.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88

99
#pragma once
1010

11-
#ifdef __GNUC__
12-
// Disable -Wdeprecated-declarations, as some builds use 'Werror'.
13-
#pragma GCC diagnostic push
14-
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
15-
#endif
16-
1711
#include <cinttypes>
1812
#include <cstdint>
1913
#include <optional>
@@ -322,7 +316,3 @@ namespace executor {
322316
using ::executorch::ET_RUNTIME_NAMESPACE::Program;
323317
} // namespace executor
324318
} // namespace torch
325-
326-
#ifdef __GNUC__
327-
#pragma GCC diagnostic pop
328-
#endif

0 commit comments

Comments
 (0)