mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
debug
This commit is contained in:
parent
8667b4a57d
commit
06737dd807
@ -1132,7 +1132,8 @@ class EomtForUniversalSegmentation(EomtPreTrainedModel):
|
||||
all_hidden_states += (hidden_states,)
|
||||
|
||||
if idx == self.num_hidden_layers - self.config.num_blocks:
|
||||
query = self.query.weight[None, :, :].expand(hidden_states.shape[0], -1, -1)
|
||||
query = self.query.weight[None, :, :].expand(hidden_states.shape[0], -1, -1).to(hidden_states.device)
|
||||
print(query.device, hidden_states.device)
|
||||
hidden_states = torch.cat((query, hidden_states), dim=1)
|
||||
|
||||
if idx >= self.num_hidden_layers - self.config.num_blocks and (
|
||||
|
Loading…
Reference in New Issue
Block a user