DreamInvoker / GAIN

Source code for EMNLP 2020 paper: Double Graph Based Reasoning for Document-level Relation Extraction
MIT License
142 stars 31 forks source link

AttributeError: 'bytearray' object has no attribute 'contiguous' #31

Closed edwarddiou closed 3 years ago

edwarddiou commented 3 years ago

Hi, there I just tried to train in ubuntu 18.04, and i got an error like the title. Did anyone same too? my pytorch and dgl version is same as the github. and run in cuda10.2 thx a lot.

螢幕快照 2021-08-12 下午10 54 44
anonymous-15-8-2022forAAAI2023 commented 2 years ago

I get the same error as you. Could you tell me how to fix it? thx

edwarddiou commented 2 years ago

I am not sure, because it's been a while... The data.py will transform the dataset to an pkl format. Then it will save the pkl file in prepro_data. Maybe while you were transforming, it got some mistake.
You can try to delete the file in prepro_data, and rerun the code.

JJJiangYH commented 1 year ago

我不确定

it's work! good job