diff --git a/aten/src/ATen/cpu/vec/vec_base.h b/aten/src/ATen/cpu/vec/vec_base.h index f68e9c6eb..c42a9b8bb 100644 --- a/aten/src/ATen/cpu/vec/vec_base.h +++ b/aten/src/ATen/cpu/vec/vec_base.h @@ -150,9 +150,8 @@ public: // versions GCC/Clang have buggy determinations on whether or not an // identifier is odr-used or not, and in any case it's hard to tell if // a variable is odr-used or not. So best to just cut the problem at the root. - static constexpr size_type size_T = sizeof(T); // Workaround to compile with VS2022. static constexpr size_type size() { - return VECTOR_WIDTH / size_T; + return VECTOR_WIDTH / sizeof(T); } Vectorized() : values{static_cast(0)} {} Vectorized(T val) {