Module furiosa.runtime.furiosa_sdk_runtime
Provide high-level Python APIs to access Furiosa AI's NPUs and its eco-system
Expand source code
"""Provide high-level Python APIs to access Furiosa AI's NPUs and its eco-system"""
__all__ = ["model", "session", "tensor", "errors"]
from furiosa_sdk_runtime import session, model, tensor, errors
from furiosa_sdk_runtime._api import LIBNUX
import importlib
utils = importlib.import_module('furiosa').utils
def _full_version() -> str:
"""Returns a full version string including the native library version"""
return "Furiosa SDK Runtime {} (libnux {} {} {})" \
.format(__version__,
LIBNUX.version().decode('utf-8'),
LIBNUX.git_short_hash().decode('utf-8'),
LIBNUX.build_timestamp().decode('utf-8'))
__version__ = utils.get_sdk_version(__name__)
__full_version__ = _full_version()
del importlib
Sub-modules
furiosa.runtime.furiosa_sdk_runtime.errors
-
Nux Exception and Error
furiosa.runtime.furiosa_sdk_runtime.model
-
Model and its methods to access model metadata
furiosa.runtime.furiosa_sdk_runtime.session
-
Session and its asynchronous API for model inference
furiosa.runtime.furiosa_sdk_runtime.tensor
-
Tensor object and its utilities