from local

This commit is contained in:
dohe0342 2023-05-24 12:48:22 +09:00
parent 1c032d6d41
commit a5abfda48c
2 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ import wandb
#from icefall.checkpoint import save_checkpoint as save_checkpoint_impl
LRSchedulerType = Union[torch.optim.lr_scheduler._LRScheduler, optim.LRScheduler]
class LoRAHook():
def __init__(self, module):
self.hook = module.register_forward_hook(self.hook_fn)