You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running DeepPrime on different servers, there is a problem where the decimal values of the predicted results differ. To address this, we need to add the initialization of a random seed to the init function.
importrandomimporttorchimportnumpyasnp# Set seedseed=0# Settingrandom.seed(seed)
np.random.seed(seed)
devicd='cuda'iftorch.cuda.is_available() else'cpu'torch.manual_seed(seed)
ifdevice=='cuda':
torch.cuda.manual_seed_all(seed)
torch.backends.cudnn.deterministic=Truetorch.backends.cudnn.benchmark=False
The text was updated successfully, but these errors were encountered:
When running DeepPrime on different servers, there is a problem where the decimal values of the predicted results differ. To address this, we need to add the initialization of a random seed to the init function.
The text was updated successfully, but these errors were encountered: