Fixed issues with TF1 compatibility

Fixed compatibility issues with TF1 and TF2 models

thanks @lcolbois

Merge request reports

Loading