(self, num_frames, pivot_frame_id=0)
| 130 | return position_id |
| 131 | |
| 132 | def forward(self, num_frames, pivot_frame_id=0): |
| 133 | position_ids = [self.frame_id_to_position_id(abs(i-pivot_frame_id)) for i in range(num_frames)] |
| 134 | position_ids = torch.IntTensor(position_ids) |
| 135 | return position_ids |
| 136 | |
| 137 | |
| 138 | class TemporalAttentionBlock(torch.nn.Module): |
nothing calls this directly
no test coverage detected