fix random crop parameter check

pull/915/head
Yanjun Peng 5 years ago committed by chang zherui
parent f2263572fb
commit d75745bce0

@ -325,7 +325,7 @@ def check_random_crop(method):
@wraps(method) @wraps(method)
def new_method(self, *args, **kwargs): def new_method(self, *args, **kwargs):
args = (list(args) + 4 * [None])[:5] args = (list(args) + 5 * [None])[:5]
size, padding, pad_if_needed, fill_value, padding_mode = args size, padding, pad_if_needed, fill_value, padding_mode = args
if "size" in kwargs: if "size" in kwargs:

Loading…
Cancel
Save