mirror of
https://github.com/hpcaitech/Open-Sora.git
synced 2026-04-11 05:13:31 +02:00
[fix] extract feat log
This commit is contained in:
parent
5aad90acaf
commit
5a1cf0c718
|
|
@ -133,7 +133,7 @@ def main():
|
|||
# == training loop in an epoch ==
|
||||
dataloader_iter = iter(dataloader)
|
||||
log_time = cfg.get("log_time", False)
|
||||
for i in tqdm(range(0, num_bin_to_process)):
|
||||
for i in tqdm(range(0, num_bin_to_process * bin_size)):
|
||||
with Timer("step", log=log_time):
|
||||
with Timer("data loading", log=log_time):
|
||||
batch = next(dataloader_iter)
|
||||
|
|
|
|||
Loading…
Reference in a new issue