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.