Spaces:
Runtime error
Runtime error
Update min_dalle/models/dalle_bart_decoder.py
Browse files
min_dalle/models/dalle_bart_decoder.py
CHANGED
@@ -176,4 +176,6 @@ class DalleBartDecoder(nn.Module):
|
|
176 |
logits.exp_()
|
177 |
logits *= is_kept.to(torch.float32)
|
178 |
image_tokens = torch.multinomial(logits, 1)[:, 0]
|
|
|
|
|
179 |
return image_tokens, attention_state
|
|
|
176 |
logits.exp_()
|
177 |
logits *= is_kept.to(torch.float32)
|
178 |
image_tokens = torch.multinomial(logits, 1)[:, 0]
|
179 |
+
del logits
|
180 |
+
print("hi")
|
181 |
return image_tokens, attention_state
|