mirror of
https://github.com/opencv/opencv.git
synced 2025-07-26 07:07:37 +08:00
dnn(onnx): fix format specifier
This commit is contained in:
parent
f605373a2b
commit
6e66a9222a
@ -443,7 +443,7 @@ void ONNXImporter::expandMid(const std::string& prefix, opencv_onnx::NodeProto&
|
|||||||
for (size_t j = 0; j < n; j++)
|
for (size_t j = 0; j < n; j++)
|
||||||
{
|
{
|
||||||
LayerParams copyLP;
|
LayerParams copyLP;
|
||||||
copyLP.name = format("%s/copy_%d", prefix.c_str(), j);
|
copyLP.name = format("%s/copy_%d", prefix.c_str(), (int)j);
|
||||||
copyLP.type = "Identity";
|
copyLP.type = "Identity";
|
||||||
CV_Assert((layer_id.find(copyLP.name) == layer_id.end()) &&
|
CV_Assert((layer_id.find(copyLP.name) == layer_id.end()) &&
|
||||||
"Couldn't copy the node: generated name already exists in the graph.");
|
"Couldn't copy the node: generated name already exists in the graph.");
|
||||||
|
Loading…
Reference in New Issue
Block a user