mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
gapi: fix build with MSVS2015 (with IE)
This commit is contained in:
parent
97c6ec6d49
commit
c15218e37a
@ -2865,11 +2865,11 @@ TEST(Infer, ModelWith2DInputs)
|
|||||||
// NB: Define model with 2D inputs.
|
// NB: Define model with 2D inputs.
|
||||||
auto in1 = std::make_shared<ngraph::op::Parameter>(
|
auto in1 = std::make_shared<ngraph::op::Parameter>(
|
||||||
ngraph::element::Type_t::u8,
|
ngraph::element::Type_t::u8,
|
||||||
ngraph::Shape(std::vector<size_t>{{H, W}})
|
ngraph::Shape(std::vector<size_t>{(size_t)H, (size_t)W})
|
||||||
);
|
);
|
||||||
auto in2 = std::make_shared<ngraph::op::Parameter>(
|
auto in2 = std::make_shared<ngraph::op::Parameter>(
|
||||||
ngraph::element::Type_t::u8,
|
ngraph::element::Type_t::u8,
|
||||||
ngraph::Shape(std::vector<size_t>{{H, W}})
|
ngraph::Shape(std::vector<size_t>{(size_t)H, (size_t)W})
|
||||||
);
|
);
|
||||||
auto result = std::make_shared<ngraph::op::v1::Add>(in1, in2);
|
auto result = std::make_shared<ngraph::op::v1::Add>(in1, in2);
|
||||||
auto func = std::make_shared<ngraph::Function>(
|
auto func = std::make_shared<ngraph::Function>(
|
||||||
|
Loading…
Reference in New Issue
Block a user