dimension check for pretrained model weights (#2984)
dimension check for pretrained model weights (#2984)

* dimension check for pretrained model weights

This PR implements a dimension check, before trying to load pre-trained model weights.

Signed-off-by: neuronflow <6ac72fb55ecd25ea06ec060a46c20584e9925101@gmail.com>

* [MONAI] python code formatting

Signed-off-by: monai-bot <44c1f063c38035faefb6ff7e163cf4202a207288@gmail.com>
Signed-off-by: neuronflow <6ac72fb55ecd25ea06ec060a46c20584e9925101@gmail.com>

* multi line split error

Signed-off-by: neuronflow <6ac72fb55ecd25ea06ec060a46c20584e9925101@gmail.com>

Co-authored-by: monai-bot <44c1f063c38035faefb6ff7e163cf4202a207288@gmail.com>
Project-MONAI/MONAI,Project-MONAI/MONAI,Project-MONAI/MONAI,Project-MONAI/MONAI