Commit f2da21a8 authored by doubleHU's avatar doubleHU Committed by binmakeswell
Browse files

fix format (#586)

parent ffad81e1
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment