Implement yaml.safe_load() (#2876)

* Implement yaml.safe_load()

* yaml.safe_dump()
This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-04-21 14:34:45 +02:00
1 parent c949fc86d1
commit f7bc685c2c
10 files changed
+23 -22

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ for last in path.rglob('*/**/last.pt'):
# Load opt.yaml
with open(last.parent.parent / 'opt.yaml') as f:
opt = yaml.load(f, Loader=yaml.SafeLoader)
opt = yaml.safe_load(f)
# Get device count
d = opt['device'].split(',') # devices