!318 Add get_class_indexing exception

Merge pull request !318 from pengyanjun/fix_get_cladd_indexing_warning
This commit is contained in:
mindspore-ci-bot 2020-04-14 22:40:44 +08:00 committed by Gitee
commit 9a781025ec
1 changed files with 1 additions and 1 deletions

View File

@ -827,7 +827,7 @@ class Dataset:
"""
if self.input:
return self.input[0].get_class_indexing()
return None
raise NotImplementedError("Dataset {} has not supported api get_class_indexing yet.".format(type(self)))
def reset(self):
"""Reset the dataset for next epoch"""