Skip to content

Commit a3c677c

Browse files
authored
Bug fix: PDEOperatorCartesianProd (#1925)
1 parent b313d96 commit a3c677c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepxde/data/pde_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def forward_call(trunk_input):
307307

308308
losses_bc = zip(*losses_bc)
309309
losses_bc = [bkd.reduce_mean(bkd.stack(loss, 0)) for loss in losses_bc]
310-
losses.append(losses_bc)
310+
losses.extend(losses_bc)
311311
return losses
312312

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

0 commit comments

Comments
 (0)