[Fix] Fixed version comparison to include prerelease versions (#1877)
* Fixed version comparison to include prerelease versions Currently all tagged versions of torch 1.11.0 have version 1.11.0a0. Previously the comparison to 1.11.0 failed and self._sync_params() was still used, causing an error. This fix should include all versions of 1.11. * Same update Didn't realize that 1.11.0 was mentioned multiple times in the file. This fixes the other instances.
Showing
Please register or sign in to comment