Looks like [this code](https://github.com/pytorch/pytorch/blob/master/torch/nn/functional.py#L3081) breaks in pytorch when running the test in this [PR](https://github.com/pytorch/xla/pull/4074). Error message: ``` Traceback (most recent call last): File "test.py", line 63, in <module> before_train = criterion(y_pred.squeeze(), y_test) File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(*input, **kwargs) File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/loss.py", line 619, in forward return F.binary_cross_entropy(input, target, weight=self.weight, reduction=self.reduction) File "/opt/conda/lib/python3.7/site-packages/torch/nn/functional.py", line 3081, in binary_cross_entropy if target.size() != input.size(): RuntimeError: NYI ``` CC @Krovatkin