diff --git a/mindspore/core/ir/param_value.h b/mindspore/core/ir/param_value.h index 4701e13321e..89730b02a42 100644 --- a/mindspore/core/ir/param_value.h +++ b/mindspore/core/ir/param_value.h @@ -25,7 +25,6 @@ #include "ir/tensor.h" namespace mindspore { - class ParamValue { public: ParamValue() {} @@ -82,6 +81,5 @@ class ParamValue { std::vector be_cloned_index_; int32_t cloned_index_{0}; }; - } // namespace mindspore #endif // MINDSPORE_CORE_IR_PARAM_VALUE_H_ diff --git a/mindspore/core/ir/tensor_py.cc b/mindspore/core/ir/tensor_py.cc index ef78d2720e2..88c8f219bf9 100644 --- a/mindspore/core/ir/tensor_py.cc +++ b/mindspore/core/ir/tensor_py.cc @@ -28,7 +28,6 @@ namespace mindspore { namespace tensor { - static TypeId GetDataType(const py::buffer_info &buf) { if (buf.format.size() == 1) { switch (buf.format.front()) { diff --git a/mindspore/core/ir/tensor_py.h b/mindspore/core/ir/tensor_py.h index e4a0b9bac66..230fbbc75a1 100644 --- a/mindspore/core/ir/tensor_py.h +++ b/mindspore/core/ir/tensor_py.h @@ -105,7 +105,6 @@ class TensorPy { static py::tuple GetPyTupleShape(const Tensor &tensor); }; - } // namespace tensor } // namespace mindspore