mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-13 00:15:35 +08:00
fix resnet eval (#4507)
This commit is contained in:
@@ -268,10 +268,11 @@ def train_resnet():
|
||||
BEAM.value = EVAL_BEAM
|
||||
|
||||
if INITMLPERF:
|
||||
i, proc = 0, fake_data_get(EVAL_BS)
|
||||
else:
|
||||
it = iter(tqdm(batch_load_resnet(batch_size=EVAL_BS, val=True, shuffle=False, pad_first_batch=True), total=steps_in_val_epoch))
|
||||
i, proc = 0, data_get(it)
|
||||
else:
|
||||
i, proc = 0, fake_data_get(EVAL_BS)
|
||||
|
||||
prev_cookies = []
|
||||
while proc is not None:
|
||||
GlobalCounters.reset()
|
||||
|
||||
Reference in New Issue
Block a user