I see. So instead of
self.weight_fb =torch.Tensor(out_features, in_features).to(device)
self.register_buffer('feedback_weight', self.weight_fb)

where self.feedback_weight is not actually used,
I can directly do
self.register_buffer('weight_fb', torch.Tensor(out_features, in_features))

Does that sound correct?