Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry-Jzy committed Dec 28, 2024
1 parent e20364c commit 101bc31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepxde/data/pde_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ def forward_call(trunk_input):
losses_bc.append(losses_i)

losses_bc = zip(*losses_bc)
for loss in losses_bc:
losses.append(bkd.reduce_mean(bkd.stack(loss, 0)))
losses_bc = [bkd.reduce_mean(bkd.stack(loss, 0)) for loss in losses_bc]
losses.extend(losses_bc)
return losses

def losses_train(self, targets, outputs, loss_fn, inputs, model, aux=None):
Expand Down

0 comments on commit 101bc31

Please sign in to comment.