(self, feats, coords)
| 115 | raise e |
| 116 | |
| 117 | def __cal_shape(self, feats, coords): |
| 118 | shape = [] |
| 119 | shape.append(coords[:, 0].max().item() + 1) |
| 120 | shape.extend([*feats.shape[1:]]) |
| 121 | return torch.Size(shape) |
| 122 | |
| 123 | def __cal_layout(self, coords, batch_size): |
| 124 | seq_len = torch.bincount(coords[:, 0], minlength=batch_size) |