mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2026-01-05 23:54:53 +00:00
This reverts commit 5be118f405.
This commit is contained in:
@@ -54,8 +54,8 @@ class ZeROHookV2(ParamOpHook):
|
||||
|
||||
@contextmanager
|
||||
def switch_training_phase(self, training_phase: TrainingPhase = TrainingPhase.BACKWARD):
|
||||
old_training_phase = self._training_phase
|
||||
try:
|
||||
old_training_phase = self._training_phase
|
||||
self._training_phase = training_phase
|
||||
yield
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user