archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-pytorch / repos / community-x86_64 / fix-building-for-torchvision.patch
blob41171e055ba41c3eb58c61d9c249171ee4ec36a4
1 From 011495d8045c44527fbd7796ce860618120ae127 Mon Sep 17 00:00:00 2001
2 From: Butui Hu <hot123tea123@gmail.com>
3 Date: Fri, 30 Apr 2021 11:36:30 +0800
4 Subject: [PATCH] fix building torchvision
6 ---
7 aten/src/ATen/core/op_registration/op_allowlist.h | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/aten/src/ATen/core/op_registration/op_allowlist.h b/aten/src/ATen/core/op_registration/op_allowlist.h
11 index f93462bb2cf..12903d1cc09 100644
12 --- a/aten/src/ATen/core/op_registration/op_allowlist.h
13 +++ b/aten/src/ATen/core/op_registration/op_allowlist.h
14 @@ -59,7 +59,7 @@ constexpr bool op_allowlist_contains(string_view allowlist, string_view item) {
15 // Returns true iff the given op name is on the allowlist
16 // and should be registered
17 constexpr bool op_allowlist_check(string_view op_name) {
18 - assert(op_name.find("::") != string_view::npos);
19 +// assert(op_name.find("::") != string_view::npos);
20 // Use assert() instead of throw() due to a gcc bug. See:
21 // https://stackoverflow.com/questions/34280729/throw-in-constexpr-function
22 // https://github.com/fmtlib/fmt/issues/682
23 --
24 2.31.1