diff --git a/src/bindings/python/src/openvino/runtime/ie_api.py b/src/bindings/python/src/openvino/runtime/ie_api.py index 6ee10f599a0..c5600d37a1e 100644 --- a/src/bindings/python/src/openvino/runtime/ie_api.py +++ b/src/bindings/python/src/openvino/runtime/ie_api.py @@ -286,7 +286,7 @@ class AsyncInferQueue(AsyncInferQueueBase): :return: a map object (which is an iterator) that yields InferRequests. :rtype: Iterable[openvino.runtime.InferRequest] """ - return map(lambda x: InferRequest(x), super().__iter__()) + return (InferRequest(x) for x in super().__iter__()) def __getitem__(self, i: int) -> InferRequest: """Gets InferRequest from the pool with given i id.