"git@developer.sourcefind.cn:OpenDAS/torch-harmonics.git" did not exist on "170dee9c0a8ef8dec1e7f74a901ab7d99a762633"
Unverified Commit f4fa3bee authored by Seokhyeon Jeong's avatar Seokhyeon Jeong Committed by GitHub
Browse files

[tests] Add torch.compile test for UNet2DConditionModel (#11537)


Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
parent 7e335319
......@@ -53,7 +53,12 @@ from diffusers.utils.testing_utils import (
torch_device,
)
from ..test_modeling_common import LoraHotSwappingForModelTesterMixin, ModelTesterMixin, UNetTesterMixin
from ..test_modeling_common import (
LoraHotSwappingForModelTesterMixin,
ModelTesterMixin,
TorchCompileTesterMixin,
UNetTesterMixin,
)
if is_peft_available():
......@@ -351,7 +356,7 @@ def create_custom_diffusion_layers(model, mock_weights: bool = True):
class UNet2DConditionModelTests(
ModelTesterMixin, LoraHotSwappingForModelTesterMixin, UNetTesterMixin, unittest.TestCase
ModelTesterMixin, TorchCompileTesterMixin, LoraHotSwappingForModelTesterMixin, UNetTesterMixin, unittest.TestCase
):
model_class = UNet2DConditionModel
main_input_name = "sample"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment