Skip to content

Stable elemwise mul #4478

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

Merged
merged 7 commits into from
Sep 29, 2017
Merged

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Sep 28, 2017

No description provided.

@reyoung reyoung requested a review from QiJune September 28, 2017 22:01
.def("set_float_element", TensorSetElement<float>)
.def("get_float_element", TensorGetElement<float>)
.def("set_double_element", TensorSetElement<double>)
.def("get_double_element", TensorGetElement<double>)
Copy link
Member

Choose a reason for hiding this comment

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

Can We have a set_element and get_element methods here to overload these methods?

.def("set_element", TensorSetElement<float>)
.def("set_element", TensorSetElement<double>)
.def("get_element", TensorGetElement<float>)
.def("get_element", TensorGetElement<double>)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think maybe we cannot. In python, all float values are double

They were using float64 for FP32 kernel before.
Copy link
Member

@QiJune QiJune left a comment

Choose a reason for hiding this comment

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

LGTM

@reyoung reyoung merged commit 01d9c46 into PaddlePaddle:develop Sep 29, 2017
@reyoung reyoung deleted the stable_elemwise_mul branch October 2, 2017 18:21
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