mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-08 04:24:47 +00:00
[doc] added documentation to chunk and chunk manager (#1094)
* [doc] added documentation to chunk and chunk manager * polish code * polish code * polish code
This commit is contained in:
@@ -64,7 +64,7 @@ class ZeroOptimizer(ColossalaiOptimizer):
|
||||
def _update_params_ptr(self):
|
||||
for group in self.optim.param_groups:
|
||||
for p in group['params']:
|
||||
if not self.module.chunk_manager.get_chunk(p).is_free:
|
||||
if not self.module.chunk_manager.get_chunk(p).is_empty:
|
||||
p.data = self.fp16_param_to_fp32_param[p]
|
||||
else:
|
||||
assert p.grad is None
|
||||
|
Reference in New Issue
Block a user