Skip to content

Commit

Permalink
Rename l to loss to fix codacity check.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburbulla committed Jun 22, 2023
1 parent 040b204 commit d6fc405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepxde/data/pde_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def _losses(self, outputs, loss_fn, inputs, model, num_func):

losses = zip(*losses)
# Use stack instead of as_tensor to keep the gradients.
losses = [bkd.reduce_mean(bkd.stack(l, axis=0)) for l in losses]
losses = [bkd.reduce_mean(bkd.stack(loss, axis=0)) for loss in losses]
return losses

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

0 comments on commit d6fc405

Please sign in to comment.