Feature Extraction
Transformers
Safetensors
vision-encoder-decoder
custom_code
anicolson commited on
Commit
74b5e37
·
verified ·
1 Parent(s): f1f2b19

Upload model

Browse files
Files changed (1) hide show
  1. modelling_cxrrg.py +1 -1
modelling_cxrrg.py CHANGED
@@ -294,7 +294,7 @@ class CXRRGModel(VisionEncoderDecoderModel):
294
  """
295
 
296
  mbatch_size, seq_len = token_ids.shape
297
- token_type_ids = torch.full_like(token_ids, self.config.section_ids[0], dtype=torch.long, device=token_ids.device)
298
 
299
  for i, j in enumerate(self.config.decoder.separator_token_ids):
300
  # Find first occurrence of special tokens that indicate the boundary between sections:
 
294
  """
295
 
296
  mbatch_size, seq_len = token_ids.shape
297
+ token_type_ids = torch.full_like(token_ids, self.config.decoder.section_ids[0], dtype=torch.long, device=token_ids.device)
298
 
299
  for i, j in enumerate(self.config.decoder.separator_token_ids):
300
  # Find first occurrence of special tokens that indicate the boundary between sections: