Skip to content

Commit ad6f5ee

Browse files
authoredApr 10, 2025··
Add a namespace for ATen mode
Differential Revision: D72440313 Pull Request resolved: #9894
1 parent 0bc52fe commit ad6f5ee

File tree

93 files changed

+517
-411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+517
-411
lines changed
 

‎codegen/templates/RegisterCodegenUnboxedKernels.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
// JIT op registry instead of c10 dispatcher. JIT op registry only takes boxed
2323
// kernels, so we are calling unboxing functions in UnboxingFunctions.h to cast
2424
// arguments into C++ types (instead of IValue) and delegate to unboxed kernels.
25-
using KernelSpan =
26-
::executorch::runtime::Span<const ::executorch::runtime::Kernel>;
25+
using KernelSpan = ::executorch::runtime::Span<
26+
const ::executorch::ET_RUNTIME_NAMESPACE::Kernel>;
2727
namespace torch {
2828
namespace executor {
2929
namespace function {

‎devtools/bundled_program/bundled_program.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ using executorch::aten::ArrayRef;
2727
using executorch::aten::Half;
2828
using executorch::aten::ScalarType;
2929
using executorch::aten::Tensor;
30+
using ::executorch::ET_RUNTIME_NAMESPACE::Method;
3031
using ::executorch::runtime::Error;
3132
using ::executorch::runtime::EValue;
32-
using ::executorch::runtime::Method;
3333
using ::executorch::runtime::Result;
3434

3535
namespace executorch {
@@ -332,8 +332,9 @@ ET_NODISCARD Error load_bundled_input(
332332
static_cast<uint32_t>(status));
333333
}
334334

335-
::executorch::runtime::internal::event_tracer_set_bundled_input_index(
336-
method.get_event_tracer(), testset_idx);
335+
::executorch::ET_RUNTIME_NAMESPACE::internal::
336+
event_tracer_set_bundled_input_index(
337+
method.get_event_tracer(), testset_idx);
337338

338339
return Error::Ok;
339340
}

0 commit comments

Comments
 (0)
Please sign in to comment.