repeatedly running the 'init' path shows the same initial tensor allocated on both cuda and cpu as long as the initial seed is the same.
then, repeatedly running the 'restore' path shows that both the cpu and cuda seed are transferred consistently from the first run.
python rando.py init --seed 123
x=tensor([ 1.3391, 0.2052, -1.6879, 0.5103, -0.3458, 0.6455, 1.5735, 0.3519,
1.1298, 0.0098], device='cuda:0')