blob: b62ecb52e8d81160017c0287cd4b1deda2fac35e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 011495d8045c44527fbd7796ce860618120ae127 Mon Sep 17 00:00:00 2001
From: Butui Hu <hot123tea123@gmail.com>
Date: Fri, 30 Apr 2021 11:36:30 +0800
Subject: [PATCH] fix building torchvision
---
aten/src/ATen/core/op_registration/op_whitelist.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aten/src/ATen/core/op_registration/op_whitelist.h b/aten/src/ATen/core/op_registration/op_whitelist.h
index f93462bb2cf..12903d1cc09 100644
--- a/aten/src/ATen/core/op_registration/op_whitelist.h
+++ b/aten/src/ATen/core/op_registration/op_whitelist.h
@@ -59,7 +59,7 @@ constexpr bool op_whitelist_contains(string_view allowlist, string_view item) {
// Returns true iff the given op name is on the allowlist
// and should be registered
constexpr bool op_whitelist_check(string_view op_name) {
- assert(op_name.find("::") != string_view::npos);
+// assert(op_name.find("::") != string_view::npos);
#if !defined(TORCH_OPERATOR_WHITELIST)
// If the TORCH_OPERATOR_WHITELIST parameter is not defined,
// all ops are to be registered
--
2.31.1
|