do not realize when sharding model weights

This commit is contained in:
Francis Lata
2025-01-21 13:45:35 -08:00
parent 7f331d8836
commit d1bc4aef94

View File

@@ -433,7 +433,7 @@ def train_retinanet():
model = RetinaNet(backbone, num_classes=NUM_CLASSES)
params = get_parameters(model)
for p in params: p.realize().to_(GPUS)
for p in params: p.to_(GPUS)
# ** optimizer **
optim = Adam(params, lr=lr)