Browse Source

!14576 [MD] Fix logger info in __del__ error

From: @xiefangqi
Reviewed-by: @liucunwei,@heleiwang
Signed-off-by: @liucunwei
pull/14576/MERGE
mindspore-ci-bot Gitee 5 years ago
parent
commit
37aed65cac
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      mindspore/dataset/engine/iterators.py

+ 0
- 1
mindspore/dataset/engine/iterators.py View File

@@ -98,7 +98,6 @@ class Iterator:
"""
Manually terminate Python iterator instead of relying on out of scope destruction.
"""
logger.info("Terminating Python iterator. This will also terminate C++ pipeline.")
if hasattr(self, '_runtime_context') and self._runtime_context:
if hasattr(self, '_iterator') and self._iterator:
self._runtime_context.Terminate()


Loading…
Cancel
Save