Files
fastapi-torch-boilerplate/workspace/option.py
Lectom C Han 55badbc44b lint 적용
2024-12-10 15:46:13 +09:00

13 lines
250 B
Python

import torch
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
class dict_options:
opt = {}
opt["device"] = device
opt["report_host"] = "http://localhost:7890"
def call_default(self):
return self.opt