!3939 fix_copy_primitive: Mean, Stack, Crop, SquaredDifference

Merge pull request !3939 from sunsuodong/fix_copy_primitive
This commit is contained in:
mindspore-ci-bot 2020-08-04 16:02:02 +08:00 committed by Gitee
commit 7c03073143
1 changed files with 8 additions and 0 deletions

View File

@ -138,6 +138,14 @@ lite::Primitive *ModelImpl::CopyPrimitive(const schema::Primitive *srcPrim) {
return new lite::Nhwc2Nchw(const_cast<schema::Primitive *>(srcPrim));
case schema::PrimitiveType_Flatten:
return new lite::Flatten(const_cast<schema::Primitive *>(srcPrim));
case schema::PrimitiveType_Mean:
return new lite::Mean(const_cast<schema::Primitive *>(srcPrim));
case schema::PrimitiveType_Stack:
return new lite::Stack(const_cast<schema::Primitive *>(srcPrim));
case schema::PrimitiveType_Crop:
return new lite::Crop(const_cast<schema::Primitive *>(srcPrim));
case schema::PrimitiveType_SquaredDifference:
return new lite::SquaredDifference(const_cast<schema::Primitive *>(srcPrim));
case schema::PrimitiveType_MatMul:
return new lite::MatMul(const_cast<schema::Primitive *>(srcPrim));
case schema::PrimitiveType_QuantDTypeCast: