Browse Source

!12576 fix check_filter bug

From: @shenwei41
Reviewed-by: @pandoublefeng,@liucunwei
Signed-off-by: @pandoublefeng,@liucunwei
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
2184bcff36
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