Skip to content

Commit 905df29

Browse files
dbortfacebook-github-bot
authored andcommitted
Rename exec_aten:: to executorch::aten:: (#5296)
Summary: Pull Request resolved: #5296 Modify any files that declare a `namespace exec_aten` to use the new `executorch::aten` namespace, and add an alias for the old namespace. Migration of users will happen in later diffs. Reviewed By: mergennachin Differential Revision: D62528437 fbshipit-source-id: 2ca7db5904dbc88cd97623abe0c0d67647fd0e5b
1 parent 38892ac commit 905df29

File tree

3 files changed

+407
-360
lines changed

3 files changed

+407
-360
lines changed

runtime/core/exec_aten/exec_aten.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@
4646

4747
#endif
4848

49-
namespace exec_aten {
49+
namespace executorch {
50+
namespace aten {
5051

51-
using TensorShapeDynamism = torch::executor::TensorShapeDynamism;
52+
using TensorShapeDynamism = executorch::runtime::TensorShapeDynamism;
5253

5354
#ifdef USE_ATEN_LIB
5455

@@ -134,13 +135,17 @@ using OptionalArrayRef =
134135

135136
using torch::executor::compute_numel;
136137

137-
#endif // Use executor types
138+
#endif // Use ExecuTorch types
138139

139-
} // namespace exec_aten
140+
} // namespace aten
141+
} // namespace executorch
142+
143+
// DEPRECATED: The exec_aten:: namespace is deprecated. Use executorch::aten::
144+
// instead.
145+
namespace exec_aten = executorch::aten;
140146

141147
namespace torch {
142148
namespace executor {
143149
using TensorList = exec_aten::TensorList;
144-
145150
} // namespace executor
146151
} // namespace torch

0 commit comments

Comments
 (0)