(self, tensor, pos: Optional[Tensor])
| 152 | nn.init.xavier_uniform_(p) |
| 153 | |
| 154 | def with_pos_embed(self, tensor, pos: Optional[Tensor]): |
| 155 | return tensor if pos is None else tensor + pos |
| 156 | |
| 157 | def forward_post(self, tgt): |
| 158 | tgt2 = self.linear2(self.dropout(self.activation(self.linear1(tgt)))) |
nothing calls this directly
no outgoing calls
no test coverage detected