You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classPrefix_Adapter(nn.Module):
def__init__(self, args, config):
super().__init__()
self.prefix=Prefix(args, config)
self.adapters=Adapter(args, config) # "Adapter" is not defined defforward(self, bsz, nsamples=1, device="cuda"):
prefix=self.prefix(bsz, nsamples, device)
adapters=self.adapters(bsz)
forii, dicinenumerate(adapters):
forkey, valueindic.items():
prefix[ii][key] =valuereturnprefix
The text was updated successfully, but these errors were encountered:
Doragd
changed the title
Prefix_Adapter in the petl/petl_factory.py seems to be not usedPrefix_Adapter& MHAdapter_Layer in the petl/petl_factory.py seems to be not used
Dec 30, 2021
"Adapter" is not defined.
The text was updated successfully, but these errors were encountered: