When I print new
new = torch.randn(5, 5)
print(new)
optimizer.param_groups.append({'params': new})

I get

tensor([[-0.6726, -1.2241, -1.2249, -0.3685, -0.7413],
        [ 0.6767, -0.5882, -1.0260, -0.4722, -1.9021],
        [-0.9020, -0.8121,  1.3669, -1.5776,  0.3921],
        [ 1.2827, -0.5978, -1.2384, -1.2176,  0.5792],
        [-0.0673, -0.5546, -1.8438,  0.4854, -0.6051]])

but then when I try to print the optimizer
print("Optimizer's state_dict:")
print(optimizer.state_dict)

I get:
Optimizer's state_dict:
<bound method Optimizer.state_dict of SGD (
Parameter Group 0
    dampening: 0
    lr: 0.001
    momentum: 0.9
    nesterov: False
    weight_decay: 0

I cannot find my 5x5 params in the optimizer. Any idea?