JMalott commited on
Commit
3be0579
1 Parent(s): 21adb73

Update min_dalle/min_dalle.py

Browse files
Files changed (1) hide show
  1. min_dalle/min_dalle.py +1 -1
min_dalle/min_dalle.py CHANGED
@@ -243,7 +243,7 @@ class MinDalle:
243
  #torch.cuda.empty_cache()
244
  #torch.cpu.empty_cache()
245
  #with torch.cuda.amp.autocast(dtype=self.dtype):
246
- del image_tokens[i + 1], attention_state = self.decoder.forward(
247
  settings=settings,
248
  attention_mask=attention_mask,
249
  encoder_state=encoder_state,
 
243
  #torch.cuda.empty_cache()
244
  #torch.cpu.empty_cache()
245
  #with torch.cuda.amp.autocast(dtype=self.dtype):
246
+ image_tokens[i + 1], attention_state = self.decoder.forward(
247
  settings=settings,
248
  attention_mask=attention_mask,
249
  encoder_state=encoder_state,