(self, n_block=2, d_templ=64, n_head=4, d_hidden=16, p_drop=0.25)
| 209 | # process template pairwise features |
| 210 | # use structure-biased attention |
| 211 | def __init__(self, n_block=2, d_templ=64, n_head=4, d_hidden=16, p_drop=0.25): |
| 212 | super(TemplatePairStack, self).__init__() |
| 213 | self.n_block = n_block |
| 214 | proc_s = [PairStr2Pair(d_pair=d_templ, n_head=n_head, d_hidden=d_hidden, p_drop=p_drop) for i in range(n_block)] |
| 215 | self.block = nn.ModuleList(proc_s) |
| 216 | self.norm = nn.LayerNorm(d_templ) |
| 217 | def forward(self, templ, rbf_feat, use_checkpoint=False): |
| 218 | B, T, L = templ.shape[:3] |
| 219 | templ = templ.reshape(B*T, L, L, -1) |
nothing calls this directly
no test coverage detected