forked from mindspore-Ecosystem/mindspore
!3939 fix_copy_primitive: Mean, Stack, Crop, SquaredDifference
Merge pull request !3939 from sunsuodong/fix_copy_primitive
This commit is contained in:
commit
7c03073143
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue