Skip to content

Commit

Permalink
Merge pull request #54 from aai-institute/bugfix/48-typo-in-deeponet-…
Browse files Browse the repository at this point in the history
…implementation

Fix typo in assertion statement in DeepONet architecture
  • Loading branch information
samuelburbulla authored Feb 22, 2024
2 parents c591c18 + f9187d5 commit 2ec260f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/continuity/operators/deeponet.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def forward(
assert u.shape[1:] == torch.Size([self.shapes.u.num * self.shapes.u.dim])

y = y.flatten(0, 1)
assert u.shape[1:] == torch.Size([self.shapes.u.num * self.shapes.u.dim])
assert y.shape[-1:] == torch.Size([self.shapes.y.dim])

# Pass through branch and trunk networks
b = self.branch(u)
Expand Down

0 comments on commit 2ec260f

Please sign in to comment.