示例#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
示例#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
示例#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)
示例#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)
示例#5
0
文件: nnet.py 项目: EricChanBD/Theano
 def __init__(self, **kwargs):
     Op.__init__(self, **kwargs)
示例#6
0
 def __init__(self, **kwargs):
     Op.__init__(self, **kwargs)
示例#7
0
 def perform(self, node, inp, out):
     return Op.perform(self, node, inp, out)
示例#8
0
 def perform(self, node, inp, out, ctx):
     # Disable the perform method from the CPU version
     Op.perform(self, node, inp, out, ctx)
示例#9
0
 def perform(self, node, inp, out, ctx):
     # Disable the perform method from the CPU version
     Op.perform(self, node, inp, out, ctx)
示例#10
0
 def perform(self, node, inp, out):
     return Op.perform(self, node, inp, out)
示例#11
0
文件: sp.py 项目: amishtal/Theano
 def __init__(self, inplace=False, *args, **kwargs):
     Op.__init__(self, *args, **kwargs)
     self.inplace = inplace
     if self.inplace:
         self.destroy_map = {0: [0]}
示例#12
0
 def perform(self, node, ins, outs):
     return Op.perform(node, ins, outs)