log_sum_exp:Adding Assertion