def seed(self, seed_value):
import random
import torch.backends.cudnn as cudnn
random.seed(seed_value)
torch.manual_seed(seed_value)
torch.cuda.manual_seed_all(seed_value)
torch.cuda.manual_seed(seed_value)
np.random.seed(seed_value)
torch.backends.cudnn.deterministic = True
torch.backends.benchmark = False