commit 62b70884e97dfaba68500f88782455728e36570b parent 811dcee73c3f20045716852b4b15e7dfc07062dc Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Mon, 21 Aug 2023 03:03:46 -0500 Fixed python ultisnippets cuda Diffstat:
| M | UltiSnips/python.snippets | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets @@ -239,7 +239,7 @@ endsnippet # --------------------------------------------- # -snippet device "device = torch.device('cuda' if not torch.cuda.is_available() else 'cpu')" b +snippet device "device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')" b device = torch.device("cuda" if not torch.cuda.is_available() else "cpu") endsnippet