summarylogtreecommitdiffstats
path: root/fix_c10.patch
blob: fd03d6cb59a2a0b07ef60f56679459ec8da4d268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --color -aur pytorch-1.9.0-old/c10/core/TensorImpl.h pytorch-1.9.0-new/c10/core/TensorImpl.h
--- pytorch-1.9.0-old/c10/core/TensorImpl.h	2021-08-17 19:33:40.324974399 +0300
+++ pytorch-1.9.0-new/c10/core/TensorImpl.h	2021-08-18 01:25:00.005901707 +0300
@@ -2177,7 +2177,7 @@
 //    DispatchKeySet
 //
 static_assert(
-    sizeof(void*) != sizeof(int64_t) || // if 64-bit...
+    sizeof(void*) <= sizeof(int64_t) || // if 64-bit...
         sizeof(TensorImpl) == sizeof(int64_t) * 23,
     "You changed the size of TensorImpl on 64-bit arch."
     "See Note [TensorImpl size constraints] on how to proceed.");