[fix] fix tests and state_dict; refactor tests (#45)
Refactor tests to remove duplicated code. Fix the state_dict test to instantiate the second optimizer with the correct precision. Fix Adam.load_state_dict to make optimizer state the right type.
Co-authored-by:
Jun Ru Anderson <andersonic@fb.com>
Showing
Please register or sign in to comment