def equals(self, other, cache=None):
    return (isinstance(other, ScalarParameter) and (self.counter == other.counter) and self.dtype.equals(other.dtype, cache=cache))
def equals(self, other, cache=None):
    return (isinstance(other, ScalarParameter) and (self.counter == other.counter) and self.dtype.equals(other.dtype, cache=cache))