Skip to content

Commit

Permalink
fix handcode_opt.py for bert (tinygrad#6756)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyuxyz authored Sep 26, 2024
1 parent 396c963 commit 0424c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/handcode_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_sched_bert():
# ignore grad norm and loss scaler for now
loss.backward()
targets += [x.lazydata for x in optim.schedule_step()]
sched = create_schedule(targets, seen)
sched = create_schedule(targets)
print(f"schedule length {len(sched)}")
return sched

Expand Down

0 comments on commit 0424c49

Please sign in to comment.