Commit ·
f5fb53f
1
Parent(s): 9c88742
Fix simple boolean expression
Browse files14 unmodified lines1516171818192021222321222314 unmodified linesimport loggingimport utils
use_cpu = torch.cuda.is_available()use_cpu = not 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):app.py+1-4