This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Huawei_Technology
/
mindspore
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
13
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
!462
fix dataset deepcopy failed while depipline referenced in the iterator
Merge pull request
!462
from caojian05/mindspore_master_bugfix
tags/v0.2.0-alpha
mindspore-ci-bot
Gitee
5 years ago
parent
43cfd16e4e
852039b726
commit
663ae4d7c2
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
mindspore/dataset/engine/iterators.py
+ 3
- 0
mindspore/dataset/engine/iterators.py
View File
@@ -231,6 +231,9 @@ class Iterator:
def num_classes(self):
return self.depipeline.GetNumClasses()
def __deepcopy__(self, memo):
return Iterator(copy.deepcopy(self.dataset, memo))
class DictIterator(Iterator):
"""
Write
Preview
Loading…
Cancel
Save