projection
(x)
| 140 | query_len = query.size(1) |
| 141 | |
| 142 | def shape(x): |
| 143 | """ projection """ |
| 144 | return x.view(batch_size, -1, head_count, dim_per_head) \ |
| 145 | .transpose(1, 2) |
| 146 | |
| 147 | def unshape(x): |
| 148 | """ compute context """ |
no outgoing calls
no test coverage detected