Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
 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()
Exemplo n.º 4
0
 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()