mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
do not realize when sharding model weights
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user