Fix bugs of compute_shape in dot expr
Merge pull request #211 from GabrielWen/dot

Fix bugs of compute_shape in dot expr