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
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
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)
def __init__(self, **kwargs): Op.__init__(self, **kwargs)
def perform(self, node, inp, out): return Op.perform(self, node, inp, out)
def perform(self, node, inp, out, ctx): # Disable the perform method from the CPU version Op.perform(self, node, inp, out, ctx)
def __init__(self, inplace=False, *args, **kwargs): Op.__init__(self, *args, **kwargs) self.inplace = inplace if self.inplace: self.destroy_map = {0: [0]}
def perform(self, node, ins, outs): return Op.perform(node, ins, outs)