Open zhqihang opened 1 year ago
Can you provide the detailed problem?
你好!我修改了model.py 279行的代码self.enc_rw = nn.Linear(100, embed_dim)为self.enc_rw = nn.Linear(20, embed_dim),但是又有了新的错误:
Traceback (most recent call last):
File "main.py", line 108, in
将walks = self.anonymous_walk[entities]增加.('cuda')方法后 代码似乎可以跑起来,但是好像不对
use cuda
load data from ./Dataset/raw_data/FB15k-237
num_entity: 14541
num_relation: 237
num_train_triples: 272115
num_valid_triples: 17535
num_test_triples: 20466
0%| | 0/25001 [00:00<?, ?it/s]-------------------------------------Valid---------------------------------------
100%|█████████████████████████████████████████████| 1000/1000 [1:08:54<00:00, 4.13s/it]
4134.3834109306335████████████████████████████████| 1000/1000 [1:08:54<00:00, 2.53s/it]
0%| | 0/25001 [1:09:02<?, ?it/s]
Traceback (most recent call last):
File "main.py", line 108, in
Hello author, what is the reason for this question?
RuntimeError: mat1 and mat2 shapes cannot be multiplied (495x20 and 100x100)