-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Stable elemwise mul #4478
Conversation
.def("set_float_element", TensorSetElement<float>) | ||
.def("get_float_element", TensorGetElement<float>) | ||
.def("set_double_element", TensorSetElement<double>) | ||
.def("get_double_element", TensorGetElement<double>) |
There was a problem hiding this comment.
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>)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.