Comments (4)
我这边尝试跑了一遍,没有出现您所说的这个问题,能否提供更多的报错信息好让我们处理这个问题?
from openhgnn.
(openhgnn) aaa@ubuntu:~/all_data/OpenHGNN$ python main.py -m KGCN -d LastFM4KGCN -t recommendation -g 0 --use_best_config
Using backend: pytorch
Use the best config.
Model:KGCN
Task:recommendation
Dataset:LastFM4KGCN
Done saving data into cached files.
Done saving data into cached files.
Traceback (most recent call last):
File "main.py", line 26, in
OpenHGNN(args=config)
File "/home/aaa/all_data/OpenHGNN/openhgnn/start.py", line 20, in OpenHGNN
result = flow.train()
File "/home/aaa/all_data/OpenHGNN/openhgnn/trainerflow/kgcn_trainer.py", line 67, in train
self._mini_train_step()
File "/home/aaa/all_data/OpenHGNN/openhgnn/trainerflow/kgcn_trainer.py", line 86, in _mini_train_step
self.labels, self.scores = self.model(block, inputData)
File "/home/aaa/anaconda3/envs/openhgnn/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/aaa/all_data/OpenHGNN/openhgnn/models/KGCN.py", line 122, in forward
self.item_embeddings, self.userList,self.labelList = self.Aggregate(blocks, inputdata)
File "/home/aaa/anaconda3/envs/openhgnn/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/aaa/all_data/OpenHGNN/openhgnn/models/KGCN.py", line 193, in forward
self.aggregate()
File "/home/aaa/all_data/OpenHGNN/openhgnn/models/KGCN.py", line 159, in aggregate
self.item_embeddings = th.tanh(self.agg(output))
File "/home/aaa/anaconda3/envs/openhgnn/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/aaa/anaconda3/envs/openhgnn/lib/python3.7/site-packages/torch/nn/modules/linear.py", line 93, in forward
return F.linear(input, self.weight, self.bias)
File "/home/aaa/anaconda3/envs/openhgnn/lib/python3.7/site-packages/torch/nn/functional.py", line 1690, in linear
ret = torch.addmm(bias, input, weight.t())
RuntimeError: Tensor for argument #2 'mat1' is on CPU, but expected it to be on GPU (while checking arguments for addmm)
from openhgnn.
我也尝试运行了一遍,并没有复现出这个bug,请问您是否按照我们提供的安装步骤完成或者有修改过代码吗
from openhgnn.
感谢,我重新配置了环境,问题已解决
from openhgnn.
Related Issues (20)
- a running error in the link prediction task based on TransE model HOT 1
- [Doc] ReadTheDocs parameters
- RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [14328, 334]] is at version 1; expected version 0 instead HOT 7
- This demo is no longer valid HOT 1
- function load() in openhgnn/dataset/adapter.py/ HOT 1
- Run Example HOT 1
- 数据集的重复处理/预处理数据集文件缓存无效 HOT 1
- Why is the embedding of meta paths different for different nodes in acm4GTN? HOT 1
- New request for heterogeneous models
- How to support inductive predict HOT 2
- Failed to import embedding flows. HOT 1
- what's the version of numpy? An error happens. HOT 1
- how to run other tdataset with the model HOT 1
- 关于DBLP数据集精度差的问题 HOT 2
- 个别模型minibatch训练问题 HOT 1
- 无法复现HGT在HGBn-ACM数据集上的结果 HOT 2
- Segmentation fault on GTN with 3 layers HOT 1
- Obtaining metapaths and attention scores HOT 1
- Non local Fastgtn? HOT 1
- RCDD & TRD HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openhgnn.