diff --git a/runtime/backend/backend_update_context.h b/runtime/backend/backend_update_context.h new file mode 100644 index 0000000000..b0ba976213 --- /dev/null +++ b/runtime/backend/backend_update_context.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once +#include +#include +#include + +namespace executorch { +namespace ET_RUNTIME_NAMESPACE { +/** + * BackendUpdateContext will be used to inject runtime info for to initialize + * delegate. + */ +class BackendUpdateContext final { + public: + explicit BackendUpdateContext(){} +}; + +} // namespace ET_RUNTIME_NAMESPACE +} // namespace executorch + +namespace torch { +namespace executor { +// TODO(T197294990): Remove these deprecated aliases once all users have moved +// to the new `::executorch` namespaces. +using ::executorch::ET_RUNTIME_NAMESPACE::BackendUpdateContext; +} // namespace executor +} // namespace torch diff --git a/runtime/backend/targets.bzl b/runtime/backend/targets.bzl index 49a14d4d0d..c72cf76981 100644 --- a/runtime/backend/targets.bzl +++ b/runtime/backend/targets.bzl @@ -17,6 +17,7 @@ def define_common_targets(): exported_headers = [ "backend_execution_context.h", "backend_init_context.h", + "backend_update_context.h", "backend_options.h", "interface.h", ],