Sub backend handler#

ivy.utils.backend.sub_backend_handler.clear_sub_backends()[source]#
ivy.utils.backend.sub_backend_handler.find_available_sub_backends(sub_backends_loc)[source]#
ivy.utils.backend.sub_backend_handler.fn_name_from_version_specific_fn_name(name, version)[source]#
Parameters:
  • name – the version specific name of the function for which the version support is to be provided.

  • version – the version of the current framework for which the support is to be provided, the version is inferred by importing the framework

Returns:

the name of the original function which will then point to the version specific function

ivy.utils.backend.sub_backend_handler.fn_name_from_version_specific_fn_name_sub_backend(name, sub_backend_version, backend_version)[source]#
Parameters:
  • name – the version specific name of the function for which the version support is to be provided.

  • version – the version of the current framework for which the support is to be provided, the version is inferred by importing the framework

Returns:

the name of the original function which will then point to the version specific function

ivy.utils.backend.sub_backend_handler.set_sub_backend(sub_backend_str)[source]#
ivy.utils.backend.sub_backend_handler.set_sub_backend_to_specific_version(sub_backend)[source]#
ivy.utils.backend.sub_backend_handler.unset_sub_backend(sub_backend_str)[source]#

This should have hopefully given you an overview of the sub_backend_handler submodule, if you have any questions, please feel free to reach out on our discord!