diff --git a/include/api/ops/ops.h b/include/api/ops/ops.h index 5e56c17377d..02d88be0e48 100644 --- a/include/api/ops/ops.h +++ b/include/api/ops/ops.h @@ -1,5 +1,5 @@ /** - * Copyright 2020 Huawei Technologies Co., Ltd + * Copyright 2020-2022 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ struct MS_API Conv2D : public OpCell { Output operator()(const Input &, const Input &) const; - int out_channel; + int out_channel = 0; std::vector kernel_size; int mode = 1; std::string pad_mode = "valid"; diff --git a/mindspore/lite/src/cxx_api/model/model_impl.cc b/mindspore/lite/src/cxx_api/model/model_impl.cc index bd0bcffda91..8ce7e4b26a0 100644 --- a/mindspore/lite/src/cxx_api/model/model_impl.cc +++ b/mindspore/lite/src/cxx_api/model/model_impl.cc @@ -1,5 +1,5 @@ /** - * Copyright 2021 Huawei Technologies Co., Ltd + * Copyright 2021-2022 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -709,5 +709,4 @@ lite::LiteSession *ModelImpl::CreateLiteSession(lite::InnerContext *context) { } return session; } - } // namespace mindspore