Setting
set_seed()
set_device()
Plt
File
Save_load
Evaluation
Common
Bot
Utils for Settings.
Set random seed.
Note
!!! conv and neighborSampler of dgl are somehow nondeterministic !!!
pytorch doc
cudatoolkit doc
dgl issue
seed (int, optional) – random seed. Defaults to 4096.
Set torch device.
gpu (str) – args.gpu. Defaults to ‘0’.
torch device. device(type=’cuda: x’) or device(type=’cpu’).
torch.device