Skip to content

Main functions

hya

Contain the main features of the hya package.

hya.is_braceexpand_available

is_braceexpand_available() -> bool

Indicate if the braceexpand package is installed or not.

Returns:

Type Description
bool

True if braceexpand is installed, otherwise False.

Example usage:

>>> from hya.imports import is_braceexpand_available
>>> is_braceexpand_available()

hya.is_torch_available

is_torch_available() -> bool

Indicate if the torch package is installed or not.

Returns:

Type Description
bool

True if torch is installed, otherwise False.

Example usage:

>>> from hya.imports import is_torch_available
>>> is_torch_available()

hya.register_resolvers

register_resolvers() -> None

Register the resolvers.

Example usage:

>>> from hya import register_resolvers
>>> register_resolvers()