Add files via upload

This commit is contained in:
Lectom
2024-12-06 11:08:58 +09:00
committed by GitHub
parent d3272c8749
commit 71ee45cbd4
4 changed files with 200 additions and 0 deletions

11
workspace/option.py Normal file
View File

@@ -0,0 +1,11 @@
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