def __eq__(self, that): if type(self) != type(that): return False if not equals(self.input_transform, that.input_transform): return False return equals( self.prediction_net.state_dict(), that.prediction_net.state_dict(), )
def __eq__(self, that): if type(self) != type(that): return False # TODO: also consider equality of the pipelines # if not equals(self.input_transform, that.input_transform): # return False return equals( self.prediction_net.state_dict(), that.prediction_net.state_dict(), )