Browse Source

fix check_filter bug

tags/v1.2.0-rc1
shenwei41 5 years ago
parent
commit
b61e0f43bb
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      mindspore/dataset/engine/validators.py

+ 0
- 2
mindspore/dataset/engine/validators.py View File

@@ -659,8 +659,6 @@ def check_filter(method):
if not callable(predicate):
raise TypeError("Predicate should be a Python function or a callable Python object.")

check_num_parallel_workers(num_parallel_workers)

if num_parallel_workers is not None:
check_num_parallel_workers(num_parallel_workers)



Loading…
Cancel
Save