Spaces:
Running
on
Zero
Running
on
Zero
ZeroGPU
Browse files
BidirectionalTranslation/options/base_options.py
CHANGED
|
@@ -64,7 +64,8 @@ class BaseOptions():
|
|
| 64 |
# Special tasks
|
| 65 |
self.initialized = True
|
| 66 |
return parser
|
| 67 |
-
|
|
|
|
| 68 |
def gather_options(self):
|
| 69 |
"""Initialize our parser with basic options (only once)."""
|
| 70 |
if not self.initialized:
|
|
@@ -114,6 +115,7 @@ class BaseOptions():
|
|
| 114 |
opt_file.write(message)
|
| 115 |
opt_file.write('\n')
|
| 116 |
|
|
|
|
| 117 |
def parse(self, model_global_path):
|
| 118 |
"""Parse options, create checkpoints directory suffix, and set up gpu device."""
|
| 119 |
self.model_global_path = model_global_path
|
|
|
|
| 64 |
# Special tasks
|
| 65 |
self.initialized = True
|
| 66 |
return parser
|
| 67 |
+
|
| 68 |
+
@spaces.GPU
|
| 69 |
def gather_options(self):
|
| 70 |
"""Initialize our parser with basic options (only once)."""
|
| 71 |
if not self.initialized:
|
|
|
|
| 115 |
opt_file.write(message)
|
| 116 |
opt_file.write('\n')
|
| 117 |
|
| 118 |
+
@spaces.GPU
|
| 119 |
def parse(self, model_global_path):
|
| 120 |
"""Parse options, create checkpoints directory suffix, and set up gpu device."""
|
| 121 |
self.model_global_path = model_global_path
|