def _is_no_value(self, var):
    if isinstance(var, core.VarBase):
        if ((var.shape == [1]) and (var.numpy()[0] == RETURN_NO_VALUE_MAGIC_NUM)):
            return True
    return False
def _is_no_value(self, var):
    if isinstance(var, core.VarBase):
        if ((var.shape == [1]) and (var.numpy()[0] == RETURN_NO_VALUE_MAGIC_NUM)):
            return True
    return False