Skip to content

Commit e828e2d

Browse files
committed
Update on "[2/N] Add option context"
For future needs without breacking API BC, in case we need to pass more information to the update API Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212/) Differential Revision: [D75919212](https://our.internmc.facebook.com/intern/diff/D75919212) [ghstack-poisoned]
2 parents 6353b85 + a9aeac4 commit e828e2d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

runtime/backend/backend_update_context.h renamed to runtime/backend/backend_option_context.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
namespace executorch {
1515
namespace ET_RUNTIME_NAMESPACE {
1616
/**
17-
* BackendUpdateContext will be used to inject runtime info for to initialize
17+
* BackendOptionContext will be used to inject runtime info for to initialize
1818
* delegate.
1919
*/
20-
class BackendUpdateContext final {
20+
class BackendOptionContext final {
2121
public:
22-
explicit BackendUpdateContext(){}
22+
explicit BackendOptionContext(){}
2323
};
2424

2525
} // namespace ET_RUNTIME_NAMESPACE
@@ -29,6 +29,6 @@ namespace torch {
2929
namespace executor {
3030
// TODO(T197294990): Remove these deprecated aliases once all users have moved
3131
// to the new `::executorch` namespaces.
32-
using ::executorch::ET_RUNTIME_NAMESPACE::BackendUpdateContext;
32+
using ::executorch::ET_RUNTIME_NAMESPACE::BackendOptionContext;
3333
} // namespace executor
3434
} // namespace torch

runtime/backend/targets.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def define_common_targets():
1717
exported_headers = [
1818
"backend_execution_context.h",
1919
"backend_init_context.h",
20-
"backend_update_context.h",
20+
"backend_option_context.h",
2121
"options.h",
2222
"interface.h",
2323
],

0 commit comments

Comments
 (0)