(filename)
return from_state_dict(torch.load(filename))
Instantiate from a pth file.
Instantiate from a pth file.
Instantiate from a pth file .
def from_pth_file(filename):
    '''
    Instantiate from a pth file.
    '''
    return from_state_dict(torch.load(filename))
def from_pth_file ( filename ) : return from_state_dict ( torch . load ( filename ) )