Skip to content

Commit 597ff16

Browse files
committed
reproduct error
1 parent 0f4f586 commit 597ff16

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

train.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,11 @@ def lf(x):
485485
# zwy = SophonJointCompile(model, [imgs, targets], trace_joint=True, output_loss_index=0, args=None)
486486
# pred = model(imgs) # forward
487487
# loss, loss_items = compute_loss(pred, targets.to(device)) # loss scaled by batch_size
488-
loss, loss_items = zwyjit(imgs, targets.to(device))
489-
# fx_g, signature = aot_export_module(
490-
# zwyjit, [imgs, targets], trace_joint=True, output_loss_index=0, decompositions=_get_disc_decomp()
491-
# )
492-
# print(fx_g)
488+
# loss, loss_items = zwyjit(imgs, targets.to(device))
489+
fx_g, signature = aot_export_module(
490+
zwyjit, [imgs, targets], trace_joint=True, output_loss_index=0, decompositions=_get_disc_decomp()
491+
)
492+
print(fx_g)
493493
if RANK != -1:
494494
loss *= WORLD_SIZE # gradient averaged between devices in DDP mode
495495
if opt.quad:

0 commit comments

Comments
 (0)