Fix bugs of compute_shape in dot expr

Fix bugs that compute shape will cause error when it has vector in it.