Remove dead code return

Co-authored-by: Hyeongchan Kim <kozistr@gmail.com>
pull/1210/head
Daniel Nouri 3 years ago committed by GitHub
parent c16fec9252
commit 2be436cb2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -249,7 +249,6 @@ def load_pretrained(
state_dict = load_state_dict_from_hf(pretrained_loc) state_dict = load_state_dict_from_hf(pretrained_loc)
else: else:
raise ValueError("No pretrained weights exist or were found for this model.") raise ValueError("No pretrained weights exist or were found for this model.")
return
if filter_fn is not None: if filter_fn is not None:
# for backwards compat with filter fn that take one arg, try one first, the two # for backwards compat with filter fn that take one arg, try one first, the two

Loading…
Cancel
Save