JMalott commited on
Commit
6b86229
·
1 Parent(s): 50d3570

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
@@ -240,7 +240,7 @@ class MinDalle:
240
  st.session_state.bar.progress(i/IMAGE_TOKEN_COUNT)
241
 
242
  torch.cuda.empty_cache()
243
- torch.cpu.empty_cache()
244
  with torch.cuda.amp.autocast(dtype=self.dtype):
245
  image_tokens[i + 1], attention_state = self.decoder.forward(
246
  settings=settings,
 
240
  st.session_state.bar.progress(i/IMAGE_TOKEN_COUNT)
241
 
242
  torch.cuda.empty_cache()
243
+ torch.device('cpu').empty_cache()
244
  with torch.cuda.amp.autocast(dtype=self.dtype):
245
  image_tokens[i + 1], attention_state = self.decoder.forward(
246
  settings=settings,