[nnc] Update description of ModelIR in documentation (#2548)
authorСергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 <s.barannikov@samsung.com>
Fri, 7 Dec 2018 09:14:28 +0000 (12:14 +0300)
committerРоман Михайлович Русяев/AI Tools Lab /SRR/Staff Engineer/삼성전자 <r.rusyaev@samsung.com>
Fri, 7 Dec 2018 09:14:28 +0000 (12:14 +0300)
Reflect recent changes in ModelIR in the documentation.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
contrib/nnc/doc/project/18_NN_Compiler_and_Optimizer_DLD.rst

index 75dffec..5ab5180 100644 (file)
@@ -265,39 +265,30 @@ To provide access to NN model representation in order to perform transformations
 
 Overview
 ````````
-Model IR consists of 4 main parts:
+Model IR consists of 3 main parts:
 
 * Graph - represents the computation graph
-* Node - container for single computational operation in computation graph
-* Operation description - represents a single operation
+* Operation - represents single operation
 * Visitor - declares an interface used for graph traversal
 
 Graph
 `````
 Graph contains information about graph input/output nodes and list of all nodes in graph.
 
-Responsible for allocating nodes and keeps all allocated node references.
+Responsible for allocating operations and keeps all allocated operation references.
 `Graph` class takes care of graph traversal considering all node input/output dependencies.
 
-Node
-````
-Each node contains:
-
-- Node id ( used to uniquely address node in computation graph )
-- Node name( set by importer, used to distinguish inputs/outputs )
-- Operation description - reference to OpDescription subclass
-- List of inputs( each represented by node reference and output index from that node )
-- List of outputs( List of nodes which take any resulting data from this node )
-
-Operation Description
-`````````````````````
-All operations in computation graph are represented by subclasses of `OpDescription` class.
-
-Every Operation's description contains:
-
-- Number of inputs/outputs operation takes
-- Shapes of input/output tensors ( initialised in Importer/ShapeInference )
-- Any information specific to operation( i.e. convolution kernel )
+Operation
+`````````
+Each operation contains:
+
+- Operation id (used to uniquely identify operation in computation graph for debugging purposes)
+- Operation name (set by importer, used to distinguish inputs/outputs and for debugging purposes)
+- Number of inputs and outputs
+- List of inputs (each represented by operation reference and output index from that node)
+- List of outputs (list of operations which take any resulting data from this operation)
+- Shapes of output tensors
+- Any information specific to operation (i.e. convolution kernel)
 
 Visitor
 ```````