Skip to content

Commit 0514560

Browse files
committed
update code
1 parent d6da79d commit 0514560

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

deepxde/data/pde_operator.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,19 +268,15 @@ def _losses(self, outputs, loss_fn, inputs, model, num_func, aux=None):
268268

269269
def forward_call(trunk_input):
270270
output = aux[0]((inputs[0], trunk_input))
271-
return bkd.reshape(
272-
output, (batchsize_total, model.net.num_outputs)
273-
)
271+
return bkd.reshape(output, (batchsize_total, model.net.num_outputs))
274272

275273
f = []
276274
if self.pde.pde is not None:
277275
# Each f has the shape (N1, N2)
278276
f = self.pde.pde(
279277
inputs[1],
280278
(
281-
bkd.reshape(
282-
outputs, (batchsize_total, model.net.num_outputs)
283-
),
279+
bkd.reshape(outputs, (batchsize_total, model.net.num_outputs)),
284280
forward_call,
285281
),
286282
bkd.reshape(

0 commit comments

Comments
 (0)