xlstm_jax.import_utils#

Functions#

resolve_import(import_path)

Resolves an import from a string or returns the input.

resolve_import_from_string(import_string)

Resolves an import from a string.

class_to_name(x)

Converts a class to a string representation.

Module Contents#

xlstm_jax.import_utils.resolve_import(import_path)#

Resolves an import from a string or returns the input.

Parameters:

import_path (str | Any) – The import path or the object itself.

Returns:

The resolved object.

Return type:

Any

xlstm_jax.import_utils.resolve_import_from_string(import_string)#

Resolves an import from a string.

Parameters:

import_string (str) – The import string.

Returns:

The resolved object.

Return type:

Any

xlstm_jax.import_utils.class_to_name(x)#

Converts a class to a string representation.

Useful for logging/saving the class name.

Parameters:

x (Any) – The input object.

Returns:

The string representation of the object.

Return type:

str | Any