Skip to content

Commit e570e59

Browse files
committed
fix tests
1 parent e6464e5 commit e570e59

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/diffusers/guiders/guider_utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313
# limitations under the License.
1414

1515
import os
16-
from dataclasses import dataclass
1716
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union
1817

1918
import torch
2019
from huggingface_hub.utils import validate_hf_hub_args
2120
from typing_extensions import Self
2221

2322
from ..configuration_utils import ConfigMixin
24-
from ..utils import PushToHubMixin, get_logger
23+
from ..utils import BaseOutput, PushToHubMixin, get_logger
2524

2625

2726
if TYPE_CHECKING:
@@ -285,8 +284,7 @@ def save_pretrained(self, save_directory: Union[str, os.PathLike], push_to_hub:
285284
self.save_config(save_directory=save_directory, push_to_hub=push_to_hub, **kwargs)
286285

287286

288-
@dataclass
289-
class GuiderOutput:
287+
class GuiderOutput(BaseOutput):
290288
pred: torch.Tensor
291289
pred_cond: Optional[torch.Tensor]
292290
pred_uncond: Optional[torch.Tensor]

0 commit comments

Comments
 (0)