GithubHelp home page GithubHelp logo

miralab-ustc / gcn4kgc Goto Github PK

View Code? Open in Web Editor NEW
57.0 57.0 11.0 27.19 MB

The code of paper Rethinking Graph Convolutional Networks in Knowledge Graph Completion. Zhanqiu Zhang, Jie Wang, Jieping Ye, Feng Wu. WWW 2022.

Python 85.17% Shell 14.83%

gcn4kgc's People

Contributors

zhanqiuzhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gcn4kgc's Issues

运行代码报错

张同学:
您好~我在运行您的代码时遇到以下错误:
Namespace(batch_size=128, channels=200, dataset='FB15k-237', decoder='distmult', dropout_rate=0.2, embedding_dim=200, eval_every=1, final_act=False, final_bn=False, final_drop=False, gamma=9.0, gc1_emb_size=150, gpu=0, init_emb_size=100, input_dropout=0, kernel_size=5, lr=0.002, n_epochs=5000, n_layer=2, name='debug', num_workers=2, patience=100, rat=False, seed=12345, ss=-1, wni=False, wsi=False)

entities: 14541

relations: 237

edges: 272115

14541 475
Graph(num_nodes=14541, num_edges=558771,
ndata_schemes={}
edata_schemes={})
start training...
Traceback (most recent call last):
File "E:/MLingual/second/GCN4KGC-main/WGCN/run.py", line 485, in
main(args)
File "E:/MLingual/second/GCN4KGC-main/WGCN/run.py", line 395, in main
pred = model.forward(g, all_rel, e1_batch, rel_batch, entity_id)
File "E:/MLingual/second/GCN4KGC-main/WGCN/run.py", line 223, in forward
e1_embedded = e1_embedded_all[e1]
IndexError: tensors used as indices must be long, byte or bool tensors

请问该如何解决?

Why CUDA error

RuntimeError: CUDA error: CUBLAS_STATUS_INTERNAL_ERROR when calling cublasCreate(handle)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.