MO docs update reshape and deprecate (#2021)
* Updated documentation for Reshape, Squeeze and Unsqueeze * Updated MO documentation about deprecated IR v7
This commit is contained in:
1 parent
152781941a
commit
a4c1c6fc46
5 files changed
+26
-18
No files matched your search
@@ -35,7 +35,7 @@ The rest of the document describes the coexistence of legacy and new flows showe
|
||||
## Read the Intermediate Representation to `CNNNetwork`
|
||||
|
||||
As the new operation set is introduced, the Model Optimizer generates the IR version 10 using the new operations by default.
|
||||
Each layer generated in the IR has a semantics matching to the corresponding operation from the nGraph namespace `opset3`.
|
||||
Each layer generated in the IR has a semantics matching to the corresponding operation from the nGraph namespaces `opset1`, `opset2` etc.
|
||||
The IR version 10 automatically triggers the nGraph flow inside the Inference Engine.
|
||||
When such IR is read in an application, the Inference Engine IR reader produces `CNNNetwork` that encapsulates the `ngraph::Function` instance underneath.
|
||||
Thus the OpenVINO IR becomes a new serialization format for the nGraph IR, and it can be deserialized reading the `CNNNetwork`.
|
||||
@@ -51,14 +51,7 @@ Both shapes and types are reinferred while loading to the Inference Engine using
|
||||
|
||||
### Legacy IR Versions
|
||||
|
||||
You can read old versions of the IR in the Inference Engine.
|
||||
Each version below or equal to 7 is treated as an old one.
|
||||
When the Inference Engine reader reads an old version of the IR, it does not use the nGraph representation.
|
||||
There is no way to activate nGraph flow with an old IR version.
|
||||
The rest of this document is not applied in this case.
|
||||
|
||||
Model Optimizer generates the IR version 10 by default, and there is the command line key `--generate_deprecated_IR_V7` which switches generation to the legacy IR version 7.
|
||||
It is useful when the new nGraph flow does not work for some reason.
|
||||
Starting from the OpenVINO™ release 2021.1 you cannot read IR version 7 and lower in the Inference Engine.
|
||||
|
||||
## Build a Model in the Application
|
||||
|
||||
|
||||
@@ -127,9 +127,6 @@ Framework-agnostic parameters:
|
||||
value, for example: "node_name->True". It will be
|
||||
DEPRECATED in future releases. Use --input option to
|
||||
specify a value for freezing.
|
||||
--generate_deprecated_IR_V7
|
||||
Force to generate old deprecated IR V7 with layers
|
||||
from old IR specification.
|
||||
--static_shape Enables `ShapeOf` operation with all children folding to `Constant`.
|
||||
This option makes model not reshapable in Inference Engine
|
||||
--disable_weights_compression
|
||||
|
||||
@@ -24,14 +24,20 @@
|
||||
|
||||
**Inputs**:
|
||||
|
||||
* **1**: `data` -- multidimensional input tensor. Required.
|
||||
* **1**: `data` -- multidimensional input tensor of type *T*. *Required*.
|
||||
|
||||
* **2**: `shape` -- 1D tensor describing output shape. Required.
|
||||
* **2**: `shape` -- 1D tensor of type *T_SHAPE* describing output shape. *Required*.
|
||||
|
||||
**Outputs**:
|
||||
|
||||
* **1**: Output tensor with the same content as a tensor at input `data` but with shape defined by input `shape`.
|
||||
|
||||
**Types**
|
||||
|
||||
* *T*: supported type.
|
||||
|
||||
* *T_SHAPE*: supported integer type.
|
||||
|
||||
**Examples**
|
||||
|
||||
```xml
|
||||
|
||||
@@ -10,9 +10,15 @@
|
||||
|
||||
**Inputs**:
|
||||
|
||||
* **1**: Multidimensional input tensor. Required.
|
||||
* **1**: Multidimensional input tensor of type *T*. *Required*.
|
||||
|
||||
* **2**: `(optional)`: 0D or 1D tensor with dimensions indices to squeeze. Values could be negative. Indices could be integer or float values.
|
||||
* **2**: 0D or 1D tensor of type *T_SHAPE* with dimensions indices to squeeze. Values could be negative. *Optional*.
|
||||
|
||||
**Types**
|
||||
|
||||
* *T*: supported type.
|
||||
|
||||
* *T_SHAPE*: supported integer type.
|
||||
|
||||
**Example**
|
||||
|
||||
|
||||
@@ -10,9 +10,15 @@
|
||||
|
||||
**Inputs**:
|
||||
|
||||
* **1**: Multidimensional input tensor. Required.
|
||||
* **1**: Multidimensional input tensor of type *T*. *Required*.
|
||||
|
||||
* **2**: OD or 1D tensor with dimensions indices to be set to 1. Values could be negative. Indices could be integer or float values.
|
||||
* **2**: OD or 1D tensor of type *T_SHAPE* with dimensions indices to be set to 1. Values could be negative. *Required*.
|
||||
|
||||
**Types**
|
||||
|
||||
* *T*: supported type.
|
||||
|
||||
* *T_SHAPE*: supported integer type.
|
||||
|
||||
**Example**
|
||||
|
||||
|
||||
Reference in new issue
Block a user