Extend get_dims
and get_param_names
in model_base
#3139
Merged
get_dims
and get_param_names
in model_base
#3139