(parameters)
return result
Instantiate from old pytorch state dict.
Instantiate from old pytorch state dict.
Instantiate from old pytorch state dict .
def from_old_pt_dict(parameters):
    '''
    Instantiate from old pytorch state dict.
    '''
    state_dict = state_dict_from_old_pt_dict(parameters)
    sizes = sizes_from_state_dict(state_dict)
    result = ProgressiveGenerator(sizes=sizes)
    result.load_state_dict(state_dict)
    return result
def from_old_pt_dict ( parameters ) : state_dict = state_dict_from_old_pt_dict ( parameters ) sizes = sizes_from_state_dict ( state_dict ) result = ProgressiveGenerator ( sizes = sizes ) result . load_state_dict ( state_dict ) return result