BinaryNet.pytorch
BinaryNet.pytorch copied to clipboard
tensor.sign? no backward?
See https://github.com/itayhubara/BinaryNet.pytorch/blob/master/models/binarized_modules.py
I want to know what is the backward process of this function. Only use tensor.sign()? What is the backward values of it?
since it uses tensor.data = Binarize(tensor.data.org) in the code, so PyTorch won't record the grad op in the graph, in other words, no need to worry about the backward op, it won't happen at all.