Add warning when positions exceeds embedding matrix size (#1717)
Add warning when positions exceeds embedding matrix size (#1717)

* add warning when --tr is not set

* use position.max instead of fix dimension

* add space after have

facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI