forked from mindspore-Ecosystem/mindspore
!3243 fix RandomAffine resample bug
Merge pull request !3243 from yanghaitao/yht_fix_randomaffine
This commit is contained in:
commit
0c3d7ec947
|
@ -477,7 +477,7 @@ def check_random_affine(method):
|
|||
if len(shear) not in (2, 4):
|
||||
raise TypeError("shear must be of length 2 or 4.")
|
||||
|
||||
type_check(resample, (Inter,), "resample")
|
||||
type_check(resample, (Inter,), "resample")
|
||||
|
||||
if fill_value is not None:
|
||||
check_fill_value(fill_value)
|
||||
|
|
Loading…
Reference in New Issue