Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug: GetAttrValue should deal with attr with attrType vector<double> #30536

Merged

Conversation

liym27
Copy link
Contributor

@liym27 liym27 commented Jan 18, 2021

PR types

Bug fixes

PR changes

OPs

Describe

As the title

Before this PR, run code as follows:

model = LayerWithSetValue(input_dim=10, hidden=1)
x = paddle.full(shape=[5, 10], fill_value=5.0, dtype="float32")
paddle.jit.save(
    layer=model,
    path="./layer_use_set_value",
    input_spec=[x],
    output_spec=None)

RuntimeError:

RuntimeError: (Unavailable) Unsupport attribute type 12. (at/home/teamcity/work/ef54dc8a5b211854/paddle/fluid/framework/attribute.cc:74)

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Jan 18, 2021

✅ This PR's description meets the template requirements!
Please wait for other CI results.

@liym27 liym27 force-pushed the fix_bug_GetAttrValue_vector_float64 branch from 3eebbb6 to 5799921 Compare January 19, 2021 03:42
@liym27 liym27 requested a review from zhhsplendid January 19, 2021 06:11
Copy link
Member

@zhhsplendid zhhsplendid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants