def METHOD_NAME(new_op):
    """Compare ops like greater/less"""
    def _impl(inputs, _, odtype="float32"):
        assert len(inputs) == 2
        return new_op(inputs[0], inputs[1]).astype(odtype)
    return _impl