MCPcopy Create free account
hub / github.com/RylonW/DocNLC / save_M

Method save_M

models/SIEN_model.py:441–446  ·  view source on GitHub ↗
(self,name)

Source from the content-addressed store, hash-verified

439 self.load_network(load_path_G, self.netG_Pre, self.opt['path']['strict_load'])
440
441 def save_M(self,name):
442 with torch.no_grad():
443 for i, w in enumerate(self.netG.parameters()):
444 self.Star_vals[i].copy_(w)
445 torch.save(self.Importance, os.path.join(self.opt['path']['models'], name+'Importance.pth'))
446 torch.save(self.Star_vals, os.path.join(self.opt['path']['models'], name+'Star.pth'))
447
448 def save(self, iter_label):
449 self.save_network(self.netG, 'G', iter_label)

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected