From 015613d91f9685611aff37ba792b66928d5a32d5 Mon Sep 17 00:00:00 2001 From: shenwei41 <shenwei41@huawei.com> Date: Fri, 28 Aug 2020 15:28:47 +0800 Subject: [PATCH] Alarm modification --- mindspore/ccsrc/minddata/dataset/callback/callback_manager.h | 2 ++ mindspore/ccsrc/minddata/dataset/callback/callback_param.h | 2 ++ mindspore/ccsrc/minddata/dataset/callback/py_ds_callback.h | 2 ++ mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h | 2 ++ mindspore/ccsrc/minddata/dataset/engine/cache/cache_server.h | 2 ++ mindspore/ccsrc/minddata/dataset/engine/gnn/graph_data_server.h | 2 ++ 6 files changed, 12 insertions(+) diff --git a/mindspore/ccsrc/minddata/dataset/callback/callback_manager.h b/mindspore/ccsrc/minddata/dataset/callback/callback_manager.h index 9fadb7bf1..0392a0d2c 100644 --- a/mindspore/ccsrc/minddata/dataset/callback/callback_manager.h +++ b/mindspore/ccsrc/minddata/dataset/callback/callback_manager.h @@ -35,6 +35,8 @@ class CallbackManager { /// \brief CallbackManager default constructor. Init needs to be called before using the created instance. CallbackManager() : enabled_(false) {} + ~CallbackManager() = default; + /// \brief /// \param [in] callbacks list of callbacks to perform void AddCallbacks(std::vector<std::shared_ptr<DSCallback>> callbacks); diff --git a/mindspore/ccsrc/minddata/dataset/callback/callback_param.h b/mindspore/ccsrc/minddata/dataset/callback/callback_param.h index 1dfe49200..70f465690 100644 --- a/mindspore/ccsrc/minddata/dataset/callback/callback_param.h +++ b/mindspore/ccsrc/minddata/dataset/callback/callback_param.h @@ -29,6 +29,8 @@ class CallbackParam { CallbackParam(int64_t epoch_num, int64_t cur_epoch_step, int64_t total_step_num) : cur_epoch_num_(epoch_num), cur_epoch_step_num_(cur_epoch_step), cur_step_num_(total_step_num) {} + ~CallbackParam() = default; + // these are constant public fields for easy access and consistency with python cb_param // the names and orders are consistent with batchInfo const int64_t cur_epoch_num_; // current epoch diff --git a/mindspore/ccsrc/minddata/dataset/callback/py_ds_callback.h b/mindspore/ccsrc/minddata/dataset/callback/py_ds_callback.h index 644930ddf..dcc574150 100644 --- a/mindspore/ccsrc/minddata/dataset/callback/py_ds_callback.h +++ b/mindspore/ccsrc/minddata/dataset/callback/py_ds_callback.h @@ -42,6 +42,8 @@ class PyDSCallback : public DSCallback { epoch_end_needed_(false), step_end_needed_(false) {} + ~PyDSCallback() = default; + void setBegin(py::function f); void setEnd(py::function f); void setEpochBegin(py::function f); diff --git a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h index 99b220936..9461dcbd5 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h +++ b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h @@ -52,6 +52,8 @@ class CacheClient { prefetch_size_ = 20; // rows_per_buf is too small (1 by default). } + ~Builder() = default; + /// Setter function to set the session id /// \param session_id /// \return Builder object itself. diff --git a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_server.h b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_server.h index 1ec5414d0..1b6a16f1c 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_server.h +++ b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_server.h @@ -49,6 +49,8 @@ class CacheServer : public Service { public: Builder() : top_("/tmp"), num_workers_(32), port_(50052), shared_memory_sz_in_gb_(4) {} + ~Builder() = default; + /// \brief Getter functions const std::string &getTop() const { return top_; } int32_t getNumWorkers() const { return num_workers_; } diff --git a/mindspore/ccsrc/minddata/dataset/engine/gnn/graph_data_server.h b/mindspore/ccsrc/minddata/dataset/engine/gnn/graph_data_server.h index ee37661d7..cbc43654a 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/gnn/graph_data_server.h +++ b/mindspore/ccsrc/minddata/dataset/engine/gnn/graph_data_server.h @@ -164,6 +164,8 @@ class GraphDataGrpcServer : public GrpcAsyncServer { GraphDataGrpcServer(const std::string &host, int32_t port, GraphDataServiceImpl *service_impl) : GrpcAsyncServer(host, port), service_impl_(service_impl) {} + ~GraphDataGrpcServer() = default; + Status RegisterService(grpc::ServerBuilder *builder) { builder->RegisterService(&svc_); return Status::OK(); -- GitLab