def reset_seed(self, seed=0):
    os.environ['PYTHONHASHSEED'] = '0'
    random.seed(seed)
    torch.manual_seed(seed)
    torch.cuda.manual_seed(seed)
def reset_seed(self, seed=0):
    os.environ['PYTHONHASHSEED'] = '0'
    random.seed(seed)
    torch.manual_seed(seed)
    torch.cuda.manual_seed(seed)