Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

mxnet 1.7.0 src/executor/infer_graph_attr_pass.cc:675: Check failed: is >> rshape[out_ent_id] Invalid attribute #19479

Answered by szha
Light-- asked this question in Q&A
Discussion options

You must be logged in to vote

@Light-- simple_bind takes the shape (not the data) of a symbol variable. The correct usage is

executor = loss.simple_bind(ctx=cpu(), a=(1,2), b=(1,2))
executor.forward(is_train=True, a=v1, b=v2)

See Symbol.simple_bind

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by szha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #19479 on November 05, 2020 16:37.