def __init__(self, name,config=None, tensors=None, graphs=None): self.config = config_with_name(name) self.name = name self.tasks = {} self.graphs = {} self.tensors = {} self.is_built = False
def __init__(self, name): self.config = config_with_name(name) self.is_built = False
def test_residual_config_proxy_direct_conflict(clean_config): c = config_with_name('res') c[Residual.KEYS.CONFIG.RATIO] = 0.1 r = Residual('res', identity, 0.2) assert r.config[Residual.KEYS.CONFIG.RATIO] == 0.2
def __init__(self, name): self.config = config_with_name(name)