@@ -44,7 +44,7 @@ void OVInferRequestDynamicTests::SetUp() {
44
44
APIBaseTest::SetUp ();
45
45
}
46
46
47
- bool OVInferRequestDynamicTests::checkOutput (const ov::runtime:: Tensor& in, const ov::runtime ::Tensor& actual) {
47
+ bool OVInferRequestDynamicTests::checkOutput (const ov::Tensor& in, const ov::Tensor& actual) {
48
48
bool result = true ;
49
49
auto net = ie->compile_model (function, ov::test::utils::DEVICE_TEMPLATE);
50
50
ov::InferRequest req;
@@ -96,7 +96,7 @@ TEST_P(OVInferRequestDynamicTests, InferDynamicNetwork) {
96
96
ov::test::utils::InputGenerateData in_data;
97
97
in_data.start_from = -50 ;
98
98
in_data.range = 100 ;
99
- ov::runtime:: Tensor inTensor = ov::test::utils::create_and_fill_tensor (element::f32, shape, in_data);
99
+ ov::Tensor inTensor = ov::test::utils::create_and_fill_tensor (element::f32, shape, in_data);
100
100
OV_ASSERT_NO_THROW (req = execNet.create_infer_request ());
101
101
OV_ASSERT_NO_THROW (req.set_tensor (" input_tensor" , inTensor));
102
102
OV_ASSERT_NO_THROW (req.infer ());
@@ -115,7 +115,7 @@ TEST_P(OVInferRequestDynamicTests, InferDynamicNetworkSetUnexpectedOutputTensorB
115
115
auto execNet = ie->compile_model (function, target_device, configuration);
116
116
// Create InferRequest
117
117
ov::InferRequest req;
118
- ov::runtime:: Tensor tensor, otensor;
118
+ ov::Tensor tensor, otensor;
119
119
const std::string outputname = function->outputs ().back ().get_any_name ();
120
120
OV_ASSERT_NO_THROW (req = execNet.create_infer_request ());
121
121
ov::test::utils::InputGenerateData in_data;
@@ -144,7 +144,7 @@ TEST_P(OVInferRequestDynamicTests, InferDynamicNetworkSetOutputTensorPreAllocate
144
144
auto execNet = ie->compile_model (function, target_device, configuration);
145
145
// Create InferRequest
146
146
ov::InferRequest req;
147
- ov::runtime:: Tensor tensor;
147
+ ov::Tensor tensor;
148
148
const std::string outputname = function->outputs ().back ().get_any_name ();
149
149
OV_ASSERT_NO_THROW (req = execNet.create_infer_request ());
150
150
ov::test::utils::InputGenerateData in_data;
@@ -153,7 +153,7 @@ TEST_P(OVInferRequestDynamicTests, InferDynamicNetworkSetOutputTensorPreAllocate
153
153
tensor = ov::test::utils::create_and_fill_tensor (element::f32, refShape, in_data);
154
154
OV_ASSERT_NO_THROW (req.set_tensor (" input_tensor" , tensor));
155
155
float ptr[5000 ];
156
- ov::runtime:: Tensor otensor (element::f32, refOutShape, ptr);
156
+ ov::Tensor otensor (element::f32, refOutShape, ptr);
157
157
OV_ASSERT_NO_THROW (req.set_tensor (outputname, otensor));
158
158
OV_ASSERT_NO_THROW (req.infer ());
159
159
ASSERT_EQ (req.get_tensor (outputname).data <float >(), ptr);
@@ -172,7 +172,7 @@ TEST_P(OVInferRequestDynamicTests, InferDynamicNetworkSetOutputShapeBeforeInfer)
172
172
auto execNet = ie->compile_model (function, target_device, configuration);
173
173
// Create InferRequest
174
174
ov::InferRequest req;
175
- ov::runtime:: Tensor tensor, otensor;
175
+ ov::Tensor tensor, otensor;
176
176
const std::string outputname = function->outputs ().back ().get_any_name ();
177
177
OV_ASSERT_NO_THROW (req = execNet.create_infer_request ());
178
178
ov::test::utils::InputGenerateData in_data;
@@ -199,7 +199,7 @@ TEST_P(OVInferRequestDynamicTests, InferDynamicNetworkGetOutputThenSetOutputTens
199
199
auto execNet = ie->compile_model (function, target_device, configuration);
200
200
// Create InferRequest
201
201
ov::InferRequest req;
202
- ov::runtime:: Tensor tensor;
202
+ ov::Tensor tensor;
203
203
const std::string outputname = function->outputs ().back ().get_any_name ();
204
204
OV_ASSERT_NO_THROW (req = execNet.create_infer_request ());
205
205
ov::test::utils::InputGenerateData in_data;
@@ -213,7 +213,7 @@ TEST_P(OVInferRequestDynamicTests, InferDynamicNetworkGetOutputThenSetOutputTens
213
213
ASSERT_TRUE (checkOutput (req.get_tensor (" input_tensor" ), req.get_tensor (outputname)));
214
214
// then, set output tensor
215
215
float ptr[5000 ];
216
- ov::runtime:: Tensor otensor (element::f32, refOutShape, ptr);
216
+ ov::Tensor otensor (element::f32, refOutShape, ptr);
217
217
OV_ASSERT_NO_THROW (req.set_tensor (outputname, otensor));
218
218
OV_ASSERT_NO_THROW (req.infer ());
219
219
ASSERT_EQ (req.get_tensor (outputname).data <float >(), ptr);
0 commit comments