Skip to content

dgl_cu111-0.7.1 I use this dgl version and get train errors #34

Description

@Juliaququ

Traceback (most recent call last):
File "train.py", line 231, in
train(opt)
File "train.py", line 125, in train
predictions = model(words=d['context_idxs'],
File "/home/anaconda3/envs/qusiyu/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/data/qusiyu/GAIN-master/code/models/GAIN.py", line 304, in forward
encoder_outputs = torch.cat([encoder_outputs, self.entity_type_emb(params['entity_type'])], dim=-1)
TypeError: expected Tensor as element 0 in argument 0, but got str

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions