Skip to content

Commit 91366f5

Browse files
authored
Filter kwargs for preprocess_input (#71)
1 parent 8b58883 commit 91366f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

efficientnet/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133

134134

135135
def preprocess_input(x, **kwargs):
136+
kwargs = {k: v for k, v in kwargs.items() if k in ['backend', 'layers', 'models', 'utils']}
136137
return _preprocess_input(x, mode='torch', **kwargs)
137138

138139

0 commit comments

Comments
 (0)