pruning and sparsity initial commit

This commit is contained in:
Glenn Jocher committed 2020-07-05 13:41:21 -07:00
1 parent 997ba7b346
commit 38f5c1ad1d
2 files changed
+21 -1

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ class Model(nn.Module):
if type(model_cfg) is dict:
self.md = model_cfg # model dict
else: # is *.yaml
import yaml
import yaml # for torch hub
with open(model_cfg) as f:
self.md = yaml.load(f, Loader=yaml.FullLoader) # model dict