mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
fix resnet eval (#4507)
This commit is contained in:
parent
a602dc67d3
commit
b399d98e41
1 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue