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 6b2ca90 commit eb81c1fCopy full SHA for eb81c1f
segmentation_models_pytorch/base/model.py
@@ -50,7 +50,7 @@ def check_input_shape(self, x):
50
def forward(self, x):
51
"""Sequentially pass `x` trough model`s encoder, decoder and heads"""
52
53
- if torch.jit.is_tracing() or self.requires_divisible_input_shape:
+ if not torch.jit.is_tracing() and self.requires_divisible_input_shape:
54
self.check_input_shape(x)
55
56
features = self.encoder(x)
0 commit comments