<filename>LIRA/config.py
import argparse

import numpy as np
import random
import torch

def setup_seed(seed):
    torch.manual_seed(seed)
    torch.cuda.manual_seed_all(seed)
    np.random.seed(seed)
    random.seed(seed)
    torch.backends.cudnn.deterministic = True

def get_arguments():
    parser = argparse.ArgumentParser()

    parser.add_argument("--worker_num", type=int, default=2)

    parser.add_argument("--reset", action='store_true')

    return parser
<filename>LIRA/config.py
import argparse

import numpy as np
import random
import torch

def setup_seed(seed):
    torch.manual_seed(seed)
    torch.cuda.manual_seed_all(seed)
    np.random.seed(seed)
    random.seed(seed)
    torch.backends.cudnn.deterministic = True

def get_arguments():
    parser = argparse.ArgumentParser()

    parser.add_argument("--worker_num", type=int, default=2)

    parser.add_argument("--reset", action='store_true')

    return parser