Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyachur committed Sep 21, 2020
1 parent 5031182 commit 48c3f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/IE_DG/Extensibility_DG/AddingNGraphOps.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To add your custom nGraph operation, create a new class that extends `ngraph::Op

5. Override the `visit_attributes` method, which allows serialization and deserialization of attributes. An `AttributeVisitor` is passed to the method, and the implementation is expected to walk over all the attributes in the op using the type-aware `on_attribute` helper. Helpers are already implemented for standard C++ types like `int64_t`, `float`, `bool`, `vector` and for existing nGraph defined types.

6. Override the `evaluate` method, this method allows to apply constant folding, if the custom operation exists on the constant branch. This is an optional method.
6. Override `evaluate`, which is an optional method that enables the application of constant folding if there is a custom operation on the constant branch.

Based on that, declaration of a operation class can look as follows:

Expand Down Expand Up @@ -55,7 +55,7 @@ nGraph operation contains two constructors: a default constructor, which allows

### `evaluate()`

`ngraph::Node::evaluate` method allows to apply constant folding for operation.
`ngraph::Node::evaluate` method allows to apply constant folding to an operation.

@snippet op.cpp op:evaluate

Expand Down

0 comments on commit 48c3f10

Please sign in to comment.