예제 #1
0
 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
예제 #2
0
파일: base.py 프로젝트: tech-pi/dxlearn
 def __init__(self, name):
     self.config = config_with_name(name)
     self.is_built = False
예제 #3
0
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
예제 #4
0
 def __init__(self, name):
     self.config = config_with_name(name)