Skip to content

Commit

Permalink
fix branch input size for multi-channel inputs
Browse files Browse the repository at this point in the history
Signed-off-by: nick7 <[email protected]>
  • Loading branch information
nheilenkoetter committed Nov 28, 2023
1 parent ab2b264 commit 8a90383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torchphysics/models/deeponet/branchnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, function_space, discretization_sampler):
super().__init__(function_space, output_space=None)
self.output_neurons = 0
self.discretization_sampler = discretization_sampler
self.input_dim = len(self.discretization_sampler)
self.input_dim = len(self.discretization_sampler) * function_space.output_space.dim
self.current_out = torch.empty(0)

def finalize(self, output_space, output_neurons):
Expand Down

0 comments on commit 8a90383

Please sign in to comment.