diff --git a/mindspore/lite/src/model_impl.cc b/mindspore/lite/src/model_impl.cc index e48b4c6c584..db92310d723 100644 --- a/mindspore/lite/src/model_impl.cc +++ b/mindspore/lite/src/model_impl.cc @@ -138,6 +138,14 @@ lite::Primitive *ModelImpl::CopyPrimitive(const schema::Primitive *srcPrim) { return new lite::Nhwc2Nchw(const_cast(srcPrim)); case schema::PrimitiveType_Flatten: return new lite::Flatten(const_cast(srcPrim)); + case schema::PrimitiveType_Mean: + return new lite::Mean(const_cast(srcPrim)); + case schema::PrimitiveType_Stack: + return new lite::Stack(const_cast(srcPrim)); + case schema::PrimitiveType_Crop: + return new lite::Crop(const_cast(srcPrim)); + case schema::PrimitiveType_SquaredDifference: + return new lite::SquaredDifference(const_cast(srcPrim)); case schema::PrimitiveType_MatMul: return new lite::MatMul(const_cast(srcPrim)); case schema::PrimitiveType_QuantDTypeCast: