Commit ·
f5fb53f
1
Parent(s): 9c88742
Fix simple boolean expression
Browse files14 unmodified lines15161718192021222324252614 unmodified linesimport loggingimport utilsuse_cpu = torch.cuda.is_available()device = "cpu" if use_cpu else "cuda"# Activate tqdm with pandastqdm.pandas()# Custom file cache decoratordef file_cache(file_path):def decorator(func):14 unmodified lines15161718192021222314 unmodified linesimport loggingimport utilsuse_cpu = not torch.cuda.is_available()device = "cpu" if use_cpu else "cuda"# Custom file cache decoratordef file_cache(file_path):def decorator(func):
app.py+1-4