"git@developer.sourcefind.cn:OpenDAS/torch-harmonics.git" did not exist on "ca46b9d213132b1ad614e4e6c57dfbf04858021d"
Unverified Commit 4027bcba authored by Thor Johnsen's avatar Thor Johnsen Committed by GitHub
Browse files

Merge pull request #904 from ksivaman/sparsity

Fixed variable name
parents 1ff54b8f 59995c76
......@@ -102,7 +102,7 @@ class ASP:
print("[ASP] Sparsifying %s::%s of size=%s and type=%s for sparsity" % (module_name, p_name, str(p.size()), str(p.dtype)))
mask = torch.ones_like(p).bool()
buffname = name.split(".")[-1] # buffer names cannot contain "."
buffname = p_name.split(".")[-1] # buffer names cannot contain "."
module.register_buffer('__%s_mma_mask' % buffname, mask)
if allow_recompute_mask:
pruned = torch.zeros_like(p).cpu()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment