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
class FewShotREModel(nn.Module):
def __init__(self, my_sentence_encoder):
'''
sentence_encoder: Sentence encoder
You need to set self.cost as your own loss function.
'''
nn.Module.__init__(self)
self.sentence_encoder = nn.DataParallel(my_sentence_encoder)
self.cost = nn.CrossEntropyLoss()
在metanet的代码中这里传入了None
但是在FewShotREModel中Dataparallel需要传入参数,否则报错
我把metanet里的代码改为了
但是后面又出现了报错
请问要怎样操作或者配置参数才能成功跑通metanet的代码并复现论文中的结果呢?望解答,谢谢!
The text was updated successfully, but these errors were encountered: