I’d like to build a c extension to binarize a FloatTensor which may need to store the binarized values in a ByteTensor.
I followed this tutorials 4, but it didn’t talk much about the c interface of torch.
I tried to read the source code but it seems to be pretty hard for me to figure this out.
So could anyone show me an example of creating a THByteTensor, or a better way to implement the binarization?
Thank you very much !