From 58fb2c180069f39e94807e35d159be5546f58b1f Mon Sep 17 00:00:00 2001 From: qiuzhongya Date: Thu, 15 Sep 2022 15:59:41 +0800 Subject: [PATCH] clean code --- mindspore/ccsrc/minddata/dataset/include/dataset/transforms.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mindspore/ccsrc/minddata/dataset/include/dataset/transforms.h b/mindspore/ccsrc/minddata/dataset/include/dataset/transforms.h index a56538ba72b..2b82c35493e 100644 --- a/mindspore/ccsrc/minddata/dataset/include/dataset/transforms.h +++ b/mindspore/ccsrc/minddata/dataset/include/dataset/transforms.h @@ -113,6 +113,8 @@ class DATASET_API Slice { Slice(Slice const &slice) = default; + Slice &operator=(const Slice &slice) = default; + ~Slice() = default; bool valid() const { return step_ != 0; } @@ -152,6 +154,8 @@ class DATASET_API SliceOption { SliceOption(SliceOption const &slice) = default; + SliceOption &operator=(const SliceOption &slice) = default; + ~SliceOption() = default; // only one of the following will be valid