Feature Extraction
Transformers
Safetensors
vision-encoder-decoder
custom_code
anicolson commited on
Commit
c1b861c
·
verified ·
1 Parent(s): 81c38cf

Update modelling_cxrrg.py

Browse files
Files changed (1) hide show
  1. modelling_cxrrg.py +2 -2
modelling_cxrrg.py CHANGED
@@ -504,7 +504,7 @@ class CXRRGModel(VisionEncoderDecoderModel):
504
  report_seq_len,
505
  report_seq_len,
506
  ),
507
- dtype=torch.long,
508
  device=causal_2d_attention_mask.device,
509
  ),
510
  )
@@ -520,7 +520,7 @@ class CXRRGModel(VisionEncoderDecoderModel):
520
  1,
521
  prompt_seq_len,
522
  report_seq_len,
523
- dtype=torch.long,
524
  device=causal_2d_attention_mask.device,
525
  )
526
 
 
504
  report_seq_len,
505
  report_seq_len,
506
  ),
507
+ dtype=torch.float,
508
  device=causal_2d_attention_mask.device,
509
  ),
510
  )
 
520
  1,
521
  prompt_seq_len,
522
  report_seq_len,
523
+ dtype=torch.float,
524
  device=causal_2d_attention_mask.device,
525
  )
526