GithubHelp home page GithubHelp logo

ValueError: Shape must be rank 2 but is rank 3 for 'gcn/GCN-0/relation_prototype_scope/MatMul' (op: 'MatMul') with input shapes: [2,4755,768], [768,1]. about spellgcn HOT 3 OPEN

acl2020spellgcn avatar acl2020spellgcn commented on June 22, 2024
ValueError: Shape must be rank 2 but is rank 3 for 'gcn/GCN-0/relation_prototype_scope/MatMul' (op: 'MatMul') with input shapes: [2,4755,768], [768,1].

from spellgcn.

Comments (3)

cxysteven avatar cxysteven commented on June 22, 2024

检查一下数据,能否贴多一点信息

from spellgcn.

hhhmmmzzz avatar hhhmmmzzz commented on June 22, 2024

我把tensorflow换成1.14.0之后就不报错啦,非常感谢!

from spellgcn.

okcd00 avatar okcd00 commented on June 22, 2024

对于 tensorflow 版本小于 1.14 的,可以试试修改 run_spellgcn.py 的 L308 报错位置:

if str(tf.__version__) < '1.14':
  # with tensorflow <1.14
  graph_weights = tf.tensordot(multi_graph_embs, w0, [[2], [0]]) / 3
  graph_weights = tf.nn.softmax(graph_weights, axis=0)
else:
  graph_weights = tf.matmul(multi_graph_embs, w0) / 3

from spellgcn.

Related Issues (20)

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.