Ejemplo n.º 1
0
 def __init__(self, output_type, inplace=False):
     Op.__init__(self)
     self.output_type = output_type
     self.inplace=inplace
     if inplace:
         self.destroy_map = {0:[0]}
     self.warned_numpy_version = False
Ejemplo n.º 2
0
 def __init__(self, output_type, inplace=False):
     Op.__init__(self)
     self.output_type = output_type
     self.inplace = inplace
     if inplace:
         self.destroy_map = {0: [0]}
     self.warned_numpy_version = False
Ejemplo n.º 3
0
 def perform(self, node, ins, outs):
     # The perform from parent don't work with CudaNdarray.  We
     # don't need it as DebugMode will test again it as an
     # optimization insert the GPU op.
     return Op.perform(self, node, ins, outs)
Ejemplo n.º 4
0
 def perform(self, node, ins, outs):
     # The perform from parent don't work with CudaNdarray.  We
     # don't need it as DebugMode will test again it as an
     # optimization insert the GPU op.
     return Op.perform(self, node, ins, outs)
Ejemplo n.º 5
0
 def __init__(self, **kwargs):
     Op.__init__(self, **kwargs)
Ejemplo n.º 6
0
 def __init__(self, **kwargs):
     Op.__init__(self, **kwargs)
Ejemplo n.º 7
0
 def perform(self, node, inp, out):
     return Op.perform(self, node, inp, out)
Ejemplo n.º 8
0
 def perform(self, node, inp, out, ctx):
     # Disable the perform method from the CPU version
     Op.perform(self, node, inp, out, ctx)
Ejemplo n.º 9
0
 def perform(self, node, inp, out, ctx):
     # Disable the perform method from the CPU version
     Op.perform(self, node, inp, out, ctx)
Ejemplo n.º 10
0
 def perform(self, node, inp, out):
     return Op.perform(self, node, inp, out)
Ejemplo n.º 11
0
 def __init__(self, inplace=False, *args, **kwargs):
     Op.__init__(self, *args, **kwargs)
     self.inplace = inplace
     if self.inplace:
         self.destroy_map = {0: [0]}
Ejemplo n.º 12
0
 def perform(self, node, ins, outs):
     return Op.perform(node, ins, outs)