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 a3d205c commit 1805450Copy full SHA for 1805450
tests/models/autoencoders/testing_utils.py
@@ -57,6 +57,9 @@ def test_enable_disable_tiling(self):
57
torch.manual_seed(0)
58
model = self.model_class(**init_dict).to(torch_device)
59
60
+ if not hasattr(model, "use_tiling"):
61
+ pytest.skip(f"Skipping test as {self.model_class.__name__} doesn't support tiling.")
62
+
63
inputs_dict.update({"return_dict": False})
64
_ = inputs_dict.pop("generator", None)
65
accepts_generator = self._accepts_generator(model)
@@ -102,6 +105,8 @@ def test_enable_disable_slicing(self):
102
105
103
106
104
107
108
+ if not hasattr(model, "use_slicing"):
109
110
111
112
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments