Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix target shape when batch size equals to 1 (pytorch#99)
When target only contains one element, the shape of its numpy array will be `()`, `assert target.shape[0] == output.shape[0]` will report errors. `np.atleast_1d` fix it.
- Loading branch information