HachiML commited on
Commit
a132899
1 Parent(s): e41400f

Upload modeling_moment.py

Browse files
Files changed (1) hide show
  1. modeling_moment.py +1 -1
modeling_moment.py CHANGED
@@ -448,7 +448,7 @@ class MomentEmbeddingModel(MomentPreTrainedModel):
448
  attention_mask = patch_view_mask.repeat_interleave(n_channels, dim=0)
449
  outputs = self.encoder(inputs_embeds=enc_in, attention_mask=attention_mask)
450
  enc_out = outputs.last_hidden_state
451
- hidden_states = outputs.hidden_states # hidden_statesを取得
452
 
453
  enc_out = enc_out.reshape((-1, n_channels, n_patches, self.config.d_model))
454
  # [batch_size x n_channels x n_patches x d_model]
 
448
  attention_mask = patch_view_mask.repeat_interleave(n_channels, dim=0)
449
  outputs = self.encoder(inputs_embeds=enc_in, attention_mask=attention_mask)
450
  enc_out = outputs.last_hidden_state
451
+ hidden_states = outputs.last_hidden_state # hidden_statesを取得
452
 
453
  enc_out = enc_out.reshape((-1, n_channels, n_patches, self.config.d_model))
454
  # [batch_size x n_channels x n_patches x d_model]