kedro_onnx.utils#

Utility functions for the onnx plugin.

Module Contents#

Functions#

check_installed(lib)

Check if a library is installed.

Attributes#

kedro_onnx.utils.onnx_converters[source]#
kedro_onnx.utils.check_installed(lib: str)[source]#

Check if a library is installed.

Parameters:

lib (str) – Library name.

Raises:

ImportError – If the library is not installed.

Example

>>> check_installed('foo')  
Traceback (most recent call last):
...
ImportError: foo is required to use this feature.
Please install it with `pip install foo`.
>>> check_installed('os')