pytorch
77dde35f - Fix error message formatting in _make_grads (#59532)

Commit
4 years ago
Fix error message formatting in _make_grads (#59532) Summary: - TORCH_CHECK doesn't handle printf style format and it will output like: `got %ld tensors and %ld gradients21` - `got 2 tensors and 1 gradients` should be the expected message for this Pull Request resolved: https://github.com/pytorch/pytorch/pull/59532 Reviewed By: ejguan Differential Revision: D28934680 Pulled By: albanD fbshipit-source-id: 2d27a754ae81310b9571ae2a2ea09d0f8d8a3d81
Author
Parents
Loading