Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix comments ngraph api 2021.2 #3520

Merged
merged 3 commits into from
Dec 16, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions docs/doxygen/ngraph_py_api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
<tab type="user" title="DL Streamer API Reference" url="https://openvinotoolkit.github.io/dlstreamer_gst/"/>
<tab type="user" title="nGraph С++ API Reference" url="../ngraph_cpp_api/annotated.html"/>
<!-- nGraph Python API Reference -->
<tab type="files" visible="yes" title="nGraph Python API Reference">
<tab type="filelist" visible="yes" title="nGraph Python API Reference" intro=""/>
<tab type="globals" visible="yes" title="" intro=""/>
</tab>
<tab type="filelist" visible="yes" title="nGraph Python API Reference" intro=""/>
</tab>
<!-- Chinese docs -->
<tab type="user" title="中文文件" url="https://docs.openvinotoolkit.org/cn/index.html"/>
Expand Down
2 changes: 1 addition & 1 deletion ngraph/python/src/ngraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ******************************************************************************
"""! ngraph module namespace, exposing factory functions for all ops and other classes."""
"""ngraph module namespace, exposing factory functions for all ops and other classes."""
# noqa: F401

from pkg_resources import get_distribution, DistributionNotFound
Expand Down
8 changes: 4 additions & 4 deletions ngraph/python/src/ngraph/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ******************************************************************************
"""! ngraph exceptions hierarchy. All exceptions are descendants of NgraphError."""
"""ngraph exceptions hierarchy. All exceptions are descendants of NgraphError."""


class NgraphError(Exception):
"""! Base class for Ngraph exceptions."""
"""Base class for Ngraph exceptions."""


class UserInputError(NgraphError):
"""! User provided unexpected input."""
"""User provided unexpected input."""


class NgraphTypeError(NgraphError, TypeError):
"""! Type mismatch error."""
"""Type mismatch error."""
4 changes: 2 additions & 2 deletions ngraph/python/src/ngraph/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ******************************************************************************
"""! nGraph helper functions."""
"""nGraph helper functions."""

from ngraph.impl import Function
from openvino.inference_engine import IENetwork


def function_from_cnn(cnn_network: IENetwork) -> Function:
"""! Get nGraph function from Inference Engine CNN network."""
"""Get nGraph function from Inference Engine CNN network."""
capsule = cnn_network._get_function_capsule()
ng_function = Function.from_capsule(capsule)
return ng_function
Expand Down
2 changes: 1 addition & 1 deletion ngraph/python/src/ngraph/impl/op/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

from _pyngraph.op import Constant

""" Retrieve Constant inner data.
"""Retrieve Constant inner data.

Internally uses PyBind11 Numpy's buffer protocol.

Expand Down
Loading