ahhhh:

RuntimeError: bool value of Tensor with more than one value is ambiguous.


I opened an issue for this here: https://github.com/pytorch/pytorch/issues/7733 258 . This is strange behavior, thank you for reporting it.