add an assertion to check the param num (#18145)
authorLu Fang <lufang@fb.com>
Wed, 3 Apr 2019 17:51:41 +0000 (10:51 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 3 Apr 2019 19:47:23 +0000 (12:47 -0700)
commit65dfe1203ffab064d4e32fa8f76833042369d2f5
tree7f23c868b9058670b4d85eaa3c7dcb36f4c07358
parent4afc067fedfb24bdb863372ff66747f3f27c33a3
add an assertion to check the param num (#18145)

Summary:
Introduce this check to see whether it will break any existing workflow
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18145

Reviewed By: dzhulgakov

Differential Revision: D14511711

Pulled By: houseroad

fbshipit-source-id: a7bb6ac84c9133fe94d3fe2f1a8566faed14a136
torch/onnx/utils.py