Population Count Op #36380
Labels
actionable
feature
A request for a proper, new feature.
module: python frontend
For issues relating to PyTorch's Python frontend
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃殌 Feature
It would be great to have the bitwise operation 'Population Count' that counts the number of 1 bits to be exposed.
Not sure if this exists in the back end of torch? It is exposed in tensorflow
Motivation
This is a key operation in implementing binarised neural nets, for example in XNOR-Net. Binarised linear and conv layers can be performed quickly using XNOR and population counts. XNOR is already exposed in the pytorch API.
cc @albanD
The text was updated successfully, but these errors were encountered: