From 2be436cb2cdf6afb25acb861b4def34bf21fa801 Mon Sep 17 00:00:00 2001 From: Daniel Nouri Date: Thu, 7 Apr 2022 08:52:17 +0200 Subject: [PATCH] Remove dead code return Co-authored-by: Hyeongchan Kim --- timm/models/helpers.py | 1 - 1 file changed, 1 deletion(-) diff --git a/timm/models/helpers.py b/timm/models/helpers.py index aa2ea370..67244d28 100644 --- a/timm/models/helpers.py +++ b/timm/models/helpers.py @@ -249,7 +249,6 @@ def load_pretrained( state_dict = load_state_dict_from_hf(pretrained_loc) else: raise ValueError("No pretrained weights exist or were found for this model.") - return if filter_fn is not None: # for backwards compat with filter fn that take one arg, try one first, the two