MCPcopy Create free account
hub / github.com/VisionRush/DeepFakeDefenders / structural_reparam

Method structural_reparam

model/replknet.py:295–298  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

293 return x
294
295 def structural_reparam(self):
296 for m in self.modules():
297 if hasattr(m, 'merge_kernel'):
298 m.merge_kernel()
299
300 # If your framework cannot automatically fuse BN for inference, you may do it manually.
301 # The BNs after and before conv layers can be removed.

Callers 1

replknet.pyFile · 0.80

Calls 1

merge_kernelMethod · 0.80

Tested by

no test coverage detected