def __init__(self, inmesh=None, hiddenmesh=None, outmesh=None, **args): if inmesh != None: args['dims'] = inmesh.dims SwipingNetwork.__init__(self, **args) if inmesh != None: self._buildBorderStructure(inmesh, hiddenmesh, outmesh) self.sortModules()
def __init__(self, inmesh = None, hiddenmesh = None, outmesh = None, **args): if inmesh != None: args['dims'] = inmesh.dims SwipingNetwork.__init__(self, **args) if inmesh != None: self._buildBorderStructure(inmesh, hiddenmesh, outmesh) self.sortModules()
def __init__(self, inmesh = None, hiddenmesh = None, outmesh = None, **args): if not self.symmetricdirections: raise NotImplementedError("BorderSwipingNetworks are currently limited so direction-symmetric weights.") if inmesh != None: args['dims'] = inmesh.dims SwipingNetwork.__init__(self, **args) if inmesh != None: self._buildBorderStructure(inmesh, hiddenmesh, outmesh) self.sortModules()
def __init__(self, inmesh=None, hiddenmesh=None, outmesh=None, **args): if not self.symmetricdirections: raise NotImplementedError( "BorderSwipingNetworks are currently limited so direction-symmetric weights." ) if inmesh != None: args['dims'] = inmesh.dims SwipingNetwork.__init__(self, **args) if inmesh != None: self._buildBorderStructure(inmesh, hiddenmesh, outmesh) self.sortModules()