(self, T, length)
| 156 | return losses["total"], losses |
| 157 | |
| 158 | def generate_src_mask(self, T, length): |
| 159 | B = length.shape[0] |
| 160 | src_mask = torch.ones(B, T) |
| 161 | for i in range(B): |
| 162 | for j in range(length[i], T): |
| 163 | src_mask[i, j] = 0 |
| 164 | return src_mask |
| 165 | |
| 166 | def encode_motion(self, |
| 167 | motion, |
nothing calls this directly
no outgoing calls
no test coverage detected