提交 5a2c6091 编写于 作者: M Megvii Engine Team

fix(build): remove -Wdeprecated-copy

GitOrigin-RevId: 565db04f9bc35066c6ce9792f09207696769ee6f
上级 eac447ba
......@@ -95,6 +95,7 @@ struct TensorShape {
#if MEGDNN_CC_HOST
TensorShape() = default;
TensorShape(const TensorShape& rhs) = default;
MGE_WIN_DECLSPEC_FUC TensorShape& operator=(const TensorShape& rhs) = default;
MGE_WIN_DECLSPEC_FUC TensorShape(const SmallVector<size_t>& init_shape);
MGE_WIN_DECLSPEC_FUC TensorShape(std::initializer_list<size_t> init_shape);
MGE_WIN_DECLSPEC_FUC std::string to_string() const;
......@@ -224,6 +225,7 @@ struct TensorLayout : public TensorShape {
#if MEGDNN_CC_HOST
TensorLayout(const TensorLayout& layout) = default;
TensorLayout& operator=(const TensorLayout& layout) = default;
//! create empty layout with given dtype
MGE_WIN_DECLSPEC_FUC explicit TensorLayout(DType dtype_);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册