diff options
Diffstat (limited to 'fix_c10.patch')
-rw-r--r-- | fix_c10.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fix_c10.patch b/fix_c10.patch new file mode 100644 index 000000000000..fd03d6cb59a2 --- /dev/null +++ b/fix_c10.patch @@ -0,0 +1,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."); |