Skip to content

Fix tensor_py.h#17195

Merged
sneaxiy merged 2 commits intoPaddlePaddle:developfrom
sneaxiy:fix_tensor_py
May 6, 2019
Merged

Fix tensor_py.h#17195
sneaxiy merged 2 commits intoPaddlePaddle:developfrom
sneaxiy:fix_tensor_py

Conversation

@sneaxiy
Copy link
Collaborator

@sneaxiy sneaxiy commented May 5, 2019

Previously, PADDLE_ENFORCE(IsValidDTypeToPyArray<T>, ...) is wrong because it is checking whether the function pointer is nullptr, but not checking whether the returned value of the function is true. This PR fixes it.

Copy link
Contributor

@chengduoZH chengduoZH left a comment

Choose a reason for hiding this comment

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

LGTM

@sneaxiy sneaxiy merged commit c5eeecc into PaddlePaddle:develop May 6, 2019
@sneaxiy sneaxiy deleted the fix_tensor_py branch October 17, 2019 07:09
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