I use your method in the code such as:
symbol_alpha = relation_alpha.sign().detach().requires_grad_()

but when the loss backward, the parameters of relation_alpha is none , my pytorch version is 1.0.
why?