Skip to content

Commit

Permalink
Update neuralpredictors/layers/encoders/encoder3d.py
Browse files Browse the repository at this point in the history
Co-authored-by: Max Burg <[email protected]>
  • Loading branch information
pollytur and MaxFBurg authored Mar 8, 2024
1 parent 177cd97 commit 6cc00ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neuralpredictors/layers/encoders/encoder3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, core, readout, readout_nonlinearity, elu_xshift, elu_yshift):
def forward(self, x, data_key=None, pupil_center=None, trial_idx=None, shift=None, detach_core=False, **kwargs):

Check warning on line 15 in neuralpredictors/layers/encoders/encoder3d.py

View check run for this annotation

Codecov / codecov/patch

neuralpredictors/layers/encoders/encoder3d.py#L15

Added line #L15 was not covered by tests
out_core = self.core(x)
if detach_core:
x = x.detach()
out_core = out_core.detach()

Check warning on line 18 in neuralpredictors/layers/encoders/encoder3d.py

View check run for this annotation

Codecov / codecov/patch

neuralpredictors/layers/encoders/encoder3d.py#L18

Added line #L18 was not covered by tests

if self.shifter:
if pupil_center is None:
Expand Down

0 comments on commit 6cc00ad

Please sign in to comment.