fix loading of older models that don't have maximize (#71023)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/71023
Reviewed By: jbschlosser
Differential Revision: D33483687
Pulled By: albanD
fbshipit-source-id: 2f3c6e97a9579be9ba15eca0756fc1f2c466fbb6