MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / apply_to

Method apply_to

wan/utils/lora_utils.py:76–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 self.module_dropout = module_dropout
75
76 def apply_to(self):
77 self.org_forward = self.org_module.forward
78 self.org_module.forward = self.forward
79 del self.org_module
80
81 def forward(self, x, *args, **kwargs):
82 weight_dtype = x.dtype

Callers 1

apply_toMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected