Skip to content

Commit ae9e402

Browse files
committed
Merge branch 'yngtodd-develop' into develop
2 parents 7a826e1 + 4d645a6 commit ae9e402

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

common/darts/storage/genotype.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def save_genotype(self, genotype: Genotype, filename='genotype.json') -> None:
2323
filename: name of the save file
2424
"""
2525
genotype = self._replace_range(genotype)
26+
os.makedirs(self.root, exist_ok=True)
2627
path = os.path.join(self.root, filename)
2728
with open(path, 'w') as outfile:
2829
json.dump(genotype, outfile)
File renamed without changes.

examples/darts/uno/uno_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def run(params):
3434
args = candle.ArgumentStruct(**params)
3535

3636
args.cuda = torch.cuda.is_available()
37-
device = torch.device(f"cuda" if args.cuda else "cpu")
37+
device = torch.device(f"cuda" if args.cuda else f"cpu")
3838
darts.banner(device=device)
3939

4040
train_data = darts.Uno('./data', 'train', download=True)

0 commit comments

Comments
 (0)