示例#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)