def get_config(cfg):
    """
    Sets the hypermeters (architecture) for ISONet using the config file

    Args:
        cfg: A YACS config object.
    """
    config_params = {
        "net_params": {
            "use_dirac": cfg.ISON.DIRAC_INIT,
            "use_dropout": cfg.ISON.DROPOUT,
            "dropout_rate": cfg.ISON.DROPOUT_RATE,
            "nc": cfg.DATASET.NUM_CLASSES,
            "depths": cfg.ISON.DEPTH,
            "has_bn": cfg.ISON.HAS_BN,
            "use_srelu": cfg.ISON.SReLU,
            "transfun": cfg.ISON.TRANS_FUN,
            "has_st": cfg.ISON.HAS_ST,
        }
    }
    return config_params