diff --git a/mindspore-lite/python/src/tensor_numpy_impl.h b/mindspore-lite/python/src/tensor_numpy_impl.h index f1a6b7f26e82bd82024434cf6a0b8eb30f400b35..29b2f232c97fbaa002065125a6603ffd18a81aa6 100644 --- a/mindspore-lite/python/src/tensor_numpy_impl.h +++ b/mindspore-lite/python/src/tensor_numpy_impl.h @@ -53,13 +53,11 @@ class TensorNumpyImpl : public MutableTensorImpl { } } const std::vector &Shape() const override { return ms_shape_; } - void SetShape(const std::vector &shape) override { - MS_LOG(WARNING) << "Cannot call SetShape for numpy tensor"; - } + void SetShape(const std::vector &shape) override { MS_LOG(INFO) << "Cannot call SetShape for numpy tensor"; } enum DataType DataType() const override { return GetDataType(buffer_); } void SetDataType(mindspore::DataType data_type) override { - MS_LOG(WARNING) << "Cannot call SetDataType for numpy tensor"; + MS_LOG(INFO) << "Cannot call SetDataType for numpy tensor"; } void SetName(const std::string &name) override { name_ = name; }