Article ID: 000087321 Content Type: Error Messages Last Reviewed: 05/20/2022

Unable to Use "IENetwork.layers" in OpenVINO™ toolkit 2021.4

Environment

OpenVINO™ toolkit 2021.2 and later

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

The "layers" property of IENetwork class is deprecated starting from OpenVINO™ toolkit 2021.2.

Description
  • Used IENetwork.layers in OpenVINO™ toolkit 2021.4.
  • Received error: openvino.inference_engine.ie_api.IENetwork object has no attribute 'layers'
Resolution

ie_api.IENetwork.layers is deprecated starting from OpenVINO™ toolkit 2021.2.

Use get_ordered_ops() methods from nGraph Python API to get a topologically sorted list of its graph nodes.

Related Products

This article applies to 2 products