mirror of
https://github.com/opencv/opencv.git
synced 2025-07-26 07:07:37 +08:00
define data_layout as unknown for pack
This commit is contained in:
parent
139c443770
commit
1c7b71bf9e
@ -2541,6 +2541,8 @@ void TFImporter::parsePack(tensorflow::GraphDef& net, const tensorflow::NodeDef&
|
|||||||
if (dim != 0)
|
if (dim != 0)
|
||||||
CV_Error(Error::StsNotImplemented, "Unsupported mode of pack operation.");
|
CV_Error(Error::StsNotImplemented, "Unsupported mode of pack operation.");
|
||||||
|
|
||||||
|
data_layouts[name] = DATA_LAYOUT_UNKNOWN;
|
||||||
|
|
||||||
CV_Assert(hasLayerAttr(layer, "N"));
|
CV_Assert(hasLayerAttr(layer, "N"));
|
||||||
int num = (int)getLayerAttr(layer, "N").i();
|
int num = (int)getLayerAttr(layer, "N").i();
|
||||||
CV_CheckEQ(num_inputs, num, "");
|
CV_CheckEQ(num_inputs, num, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user