Skip to content

Commit

Permalink
Refactor slice computation in PatchInferencerEngine to remove unused …
Browse files Browse the repository at this point in the history
…variable and enhance clarity
  • Loading branch information
GabrielBG0 committed Nov 12, 2024
1 parent 78fdd78 commit b4018be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minerva/engines/patch_inferencer_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def __call__(
tuple(
[
slice(i, None) # TODO: if ((i + base >= 0) and (i < in_dim))
for i, base, in_dim in zip([0, *offset], base, x.shape)
for i, in_dim in zip([0, *offset], x.shape)
]
)
for offset in offsets
Expand Down

0 comments on commit b4018be

Please sign in to comment.