Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

1.7 KB
Raw Blame

Bindings and Public APIs Review

For frontend Python code under src/bindings/python/src/openvino/frontend/ or src/bindings/python/src/pyopenvino/frontend/, also apply frontend guidance. This includes the Python-based PyTorch and JAX decoders, whose changes affect model conversion semantics.

  • When a public C++ API changes, check applicable Python, C, and JavaScript bindings, documentation, and tests.
  • Check that operator docstrings, input validation, and typing agree with core and binding behavior.
  • Look for avoidable C++/language-boundary copies and wrappers around existing compiled bindings.
  • Check exception translation and whether language wrappers preserve C++ object and tensor lifetimes.
  • Python .pyi files under src/bindings/python/ are generated by the stub update workflow using pybind11-stubgen. Do not request manual edits to generated stubs; trace discrepancies to the bindings or stub generator and request regeneration when applicable.
  • The dependency versions should remain consistent across components and requirements files, especially frontend packages like torch and ONNX, but also packages like protobuf.
  • There is a strict backwards compatibility policy. Any changes which may break it require a proper deprecation notice with a deprecation warning test.
  • Extending public Python API also needs careful review, as once merged and released, we commit to maintaining it.
  • The Python API should be a wrapper around C++ code - as much as possible should be done by underlying C++ API, instead of extending Python or pybind binding logic.