We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26725de commit 5b75f11Copy full SHA for 5b75f11
tests/encoders/base.py
@@ -82,7 +82,7 @@ def test_in_channels(self):
82
encoder.eval()
83
84
# forward
85
- with torch.no_grad():
+ with torch.inference_mode():
86
encoder.forward(sample)
87
88
def test_depth(self):
@@ -110,7 +110,7 @@ def test_depth(self):
110
111
112
113
114
features = encoder.forward(sample)
115
116
# check number of features
@@ -187,7 +187,7 @@ def test_dilated(self):
187
188
189
190
191
192
193
height_strides, width_strides = self.get_features_output_strides(
0 commit comments