def test_log_sum_exp_2():
 x = np.array([(-100.0), 100.0])
 x = sharedX(x)
 stable = log_sum_exp(x).eval()
 assert np.allclose(stable, 100.0)

def test_log_sum_exp_2 ( ) : x = np . array ( [ ( - 100.0 ) , 100.0 ] ) x = sharedX ( x ) stable = log_sum_exp ( x ) . eval ( ) assert np . allclose ( stable , 100.0 )
tests that the stable log sum exp succeeds for extreme values .