Skip to content

Commit 8386b78

Browse files
authored
fix reduce_util.h ATen mode build (#9300)
This line is in namespace torch::executor, and torch::executor::optional exists in regular mode but not ATen mode. whoops.
1 parent 8c03d04 commit 8386b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernels/portable/cpu/util/reduce_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ template <typename Func>
843843
template <typename Func>
844844
[[nodiscard]] bool parallel_for_each_reduce_over_dim_list_output_index(
845845
const Tensor& in,
846-
optional<ArrayRef<int64_t>> dim_list,
846+
executorch::aten::optional<ArrayRef<int64_t>> dim_list,
847847
const Tensor& out,
848848
const Func& func) {
849849
#ifdef ET_UE_THREADPOOL

0 commit comments

Comments
 (0)