BF - check shapes before allclose
Merge pull request #137 from MrBago/fix_allclose_error

BF - check shapes before allclose