If you just have Parameters in your __init__, you don’t have to handle cuda assignments yourself.
Just remove the if torch.cuda.is_available code and your parameters will be registered correctly.
Also, .parameters() is a method, so you should call it like:
print(list(m.parameters()))

or
print(list(m.named_parameters()))