Skip to content

Conversation

@ailzhang
Copy link
Contributor

fixes https://github.com/pytorch/lockdown/issues/39.
Hopefully it doesn't break other tests....

@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label May 29, 2019
@ailzhang ailzhang requested review from suo and zdevito May 29, 2019 17:25
} else {
auto inputs = getNamedValues(apply.inputs(), true);
auto attributes = emitAttributes(apply.attributes());
if (sv->kind() == "python value of type \'builtin_function_or_method\'") {
Copy link
Contributor

Choose a reason for hiding this comment

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

This error message probably should go in PythonValue::call not here. kind() is for error message reporting only and shouldn't be used to decide behavior.

@pytorchbot pytorchbot added the module: pybind Related to our Python bindings / interactions with other Python libraries label Jun 7, 2019
@ailzhang
Copy link
Contributor Author

@zdevito I updated the PR as suggested, would you mind taking another look when you have time? Thanks!

@zdevito zdevito self-requested a review June 11, 2019 17:01
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ailzhang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ailzhang merged this pull request in 50ee1f3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: pybind Related to our Python bindings / interactions with other Python libraries oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants