What is the difference between net.cuda and net.to('cuda')?

What is the difference between net.cuda and net.to(‘cuda’)?

Do someone know? Thank you

Hi,

The first one is the old notation, the second one is the new unified notation. They do the same thing.

Thank you very much.