fix format (#586)

pull/673/head
doubleHU 2022-03-31 21:37:17 +08:00 committed by binmakeswell
parent ffad81e1d1
commit f2da21a827
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class BaseGradientHandler(ABC):
model (Module): Model where the gradients accumulate.
optimizer (Optimizer): Optimizer for updating the parameters.
"""
def __init__(self, model, optimizer):
self._model = model
self._optimizer = optimizer

View File

@ -5,6 +5,7 @@ import torch
class BaseOpHook(ABC):
"""This class allows users to add customized operations
before and after the execution of a PyTorch submodule"""
def __init__(self):
pass