mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-09 04:50:17 +00:00
refactor kernel (#142)
This commit is contained in:
@@ -90,8 +90,7 @@ class FusedSGD(Optimizer):
|
||||
[0], dtype=torch.int, device=self.param_groups[0]["params"][0].device)
|
||||
self.multi_tensor_sgd = colossal_C.multi_tensor_sgd
|
||||
else:
|
||||
raise RuntimeError(
|
||||
'apex.optimizers.FusedSGD requires cuda extensions')
|
||||
raise RuntimeError('FusedSGD requires cuda extensions')
|
||||
|
||||
def __setstate__(self, state):
|
||||
super(FusedSGD, self).__setstate__(state)
|
||||
|
Reference in New Issue
Block a user