MCPcopy Create free account
hub / github.com/RosettaCommons/RFdiffusion / __init__

Method __init__

rfdiffusion/Embeddings.py:211–216  ·  view source on GitHub ↗
(self, n_block=2, d_templ=64, n_head=4, d_hidden=16, p_drop=0.25)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

PairStr2PairClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected