There was an error while loading. Please reload this page.
1 parent aaac495 commit 22a10dbCopy full SHA for 22a10db
1 file changed
tests/unit/torch/export/test_unified_export_hf.py
@@ -61,6 +61,7 @@ def test_resolve_export_dtype(configured_dtype, dtype, expected_dtype, warning_c
61
62
63
def test_resolve_export_dtype_with_empty_diffusers_config():
64
+ # Import locally so Diffusers stays optional during torch-only test collection.
65
frozen_dict = pytest.importorskip("diffusers.configuration_utils").FrozenDict()
66
model = torch.nn.Linear(1, 1)
67
model.config = frozen_dict
0 commit comments