mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:39:09 +08:00
20584b9d44
* [libtorch] update to 2.1.2 * adjust features and deps * remove dep * fix onnx case * use system fxdiv * update xnnpack * fxdiv fix in libtorch * add newline * xnnpack does not install configs * more patching * fix patch * more fixes * use full lib for sleef. * fix glog symbol on osx * try fixing msvc ice * ok renaming did nothing * v db * remove comments * v db * cuda is only for x64 * v db * fix usage since cuda is still external to vcpkg * v db --------- Co-authored-by: Jim wang (BEYONDSOFT CONSULTING INC) <v-wangjim@microsoft.com>
16 lines
727 B
Diff
16 lines
727 B
Diff
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<T>(0)} {}
|
|
Vectorized(T val) {
|