Skip to content

Commit

Permalink
fix: 🐛 Fix inplace change of outputs passed to model forward pass
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoadesScholar committed May 1, 2024
1 parent a4a1ef9 commit 1449ca3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ include_package_data = True
install_requires =
torch
numpy
funlib.learn.torch @ git+https://github.com/funkelab/funlib.learn.torch.git

[options.packages.find]
where=src
Expand Down
2 changes: 1 addition & 1 deletion src/leibnetz/leibnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def forward(self, inputs: dict[str, dict[str, Sequence[int | float]]]):
# outputs is a dictionary of tensors

# initialize buffer
self.buffer = inputs
self.buffer = {key: inputs[key] for key in self.input_keys}

# march along nodes based on graph succession
for flushable_list, node in zip(self.flushable_arrays, self.ordered_nodes):
Expand Down

0 comments on commit 1449ca3

Please sign in to comment.