Created by: zhiqiu
This PR fixes a bug of test_var_vase.
test_var_vase
np.ndarray([5, 30]) may contains nan, which lead to the failure, since np.equal(np.nan, np.nan) is False.
np.ndarray([5, 30])
nan
np.equal(np.nan, np.nan)
False