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 __init__(self, **kwargs): Op.__init__(self, **kwargs)
def __init__(self, inplace=False, *args, **kwargs): Op.__init__(self, *args, **kwargs) self.inplace = inplace if self.inplace: self.destroy_map = {0: [0]}