ContinualRE
ContinualRE copied to clipboard
一个小BUG
在windows运行时,出了两个小BUG:😀
-
在tacred/lifelong/data/sampler/data_sampler.py 文件中,第128行: 把
with open(file) as file_in:
改成with open(file, encoding='utf-8') as file_in:
否则,报错unicode...(具体忘记了...😂) -
在 tacred/run_multi_proto.py 文件中,第29行: 把
short_logits = distances
改成short_logits = torch.from_numpy(distances)
就成功运行了。 否则提示,第31行,加号左右数据类型不匹配。