Skip to content

Commit 0706cae

Browse files
committed
fix test
1 parent 7326e25 commit 0706cae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/pipelines/test_pipelines.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import requests_mock
3030
import safetensors.torch
3131
import torch
32+
import torch.nn as nn
3233
from parameterized import parameterized
3334
from PIL import Image
3435
from requests.exceptions import HTTPError
@@ -135,6 +136,7 @@ def _test_from_save_pretrained_dynamo(in_queue, out_queue, timeout):
135136
class CustomEncoder(ModelMixin, ConfigMixin):
136137
def __init__(self):
137138
super().__init__()
139+
self.linear = nn.Linear(3, 3)
138140

139141

140142
class CustomPipeline(DiffusionPipeline):

0 commit comments

Comments
 (0)