thunlp / FewRel

A Large-Scale Few-Shot Relation Extraction Dataset
https://thunlp.github.io/fewrel.html
MIT License
731 stars 165 forks source link

运行gnn模型 用cnn encoder 报错 #84

Open LeiPK opened 1 year ago

LeiPK commented 1 year ago

python train_demo.py \ --val val_wiki \ --model snail \ --encoder cnn \ --trainN 10 \ --N 5 \ --K 1 \ --val_step 1000

模型报错如下: ../aten/src/ATen/native/cuda/Indexing.cu:1141: indexSelectLargeIndex: block: [18,0,0], thread: [123,0,0] Assertion srcIndex < srcSelectDimSize failed. ../aten/src/ATen/native/cuda/Indexing.cu:1141: indexSelectLargeIndex: block: [18,0,0], thread: [124,0,0] Assertion srcIndex < srcSelectDimSize failed. ../aten/src/ATen/native/cuda/Indexing.cu:1141: indexSelectLargeIndex: block: [18,0,0], thread: [125,0,0] Assertion srcIndex < srcSelectDimSize failed. ../aten/src/ATen/native/cuda/Indexing.cu:1141: indexSelectLargeIndex: block: [18,0,0], thread: [126,0,0] Assertion srcIndex < srcSelectDimSize failed. ../aten/src/ATen/native/cuda/Indexing.cu:1141: indexSelectLargeIndex: block: [18,0,0], thread: [127,0,0] Assertion srcIndex < srcSelectDimSize failed. run2.0.sh: line 27: 34102 Segmentation fault python train_demo.py --val val_wiki --model snail --encoder cnn --trainN 10 --N 5 --K 1 --val_step 1000