Match rel_pos_indices attr rename in conv branch

pull/880/head
Ross Wightman 3 years ago
parent b49630a138
commit b1c2e3eb92

@ -67,7 +67,7 @@ class LambdaLayer(nn.Module):
# local lambda convolution for pos # local lambda convolution for pos
self.conv_lambda = nn.Conv3d(1, dim_head, (r, r, 1), padding=(r // 2, r // 2, 0)) self.conv_lambda = nn.Conv3d(1, dim_head, (r, r, 1), padding=(r // 2, r // 2, 0))
self.pos_emb = None self.pos_emb = None
self.rel_pos = None self.rel_pos_indices = None
else: else:
# relative pos embedding # relative pos embedding
assert feat_size is not None assert feat_size is not None

Loading…
Cancel
Save