diff --git a/runtime/core/exec_aten/exec_aten.h b/runtime/core/exec_aten/exec_aten.h index 207b95bc078..df6ef60c833 100644 --- a/runtime/core/exec_aten/exec_aten.h +++ b/runtime/core/exec_aten/exec_aten.h @@ -87,6 +87,7 @@ using IntArrayRef = at::IntArrayRef; template using OptionalArrayRef = c10::OptionalArrayRef; +using OptionalIntArrayRef = OptionalArrayRef; inline ssize_t compute_numel(const SizesType* sizes, ssize_t dim) { return static_cast( @@ -132,6 +133,7 @@ using IntArrayRef = torch::executor::IntArrayRef; template using OptionalArrayRef = torch::executor::optional>; +using OptionalIntArrayRef = OptionalArrayRef; using torch::executor::compute_numel;