I want to generate t.nn.Parameter type weights through for loop, but the self.weights list can only get one element, with the warning in Pycharm “‘tensor’ is not callable”.
for w in weights[:-1]:
            self.weights += [t.nn.Parameter(t.tensor([w], requires_grad=True))]