bittensor.commands.utils#
Attributes#
Classes#
Prompt for a list of integers. |
|
Functions#
|
|
|
Checks, when CUDA is available, if the user would like to register with their CUDA device. |
|
|
|
|
|
|
|
Normalizes the hyperparameters of a subnet. |
|
|
Module Contents#
- bittensor.commands.utils.console#
- class bittensor.commands.utils.IntListPrompt(prompt='', *, console=None, password=False, choices=None, show_default=True, show_choices=True)[source]#
Bases:
rich.prompt.PromptBase
Prompt for a list of integers.
- Parameters:
- bittensor.commands.utils.check_netuid_set(config, subtensor, allow_none=False)[source]#
- Parameters:
config (bittensor.config)
subtensor (bittensor.subtensor)
allow_none (bool)
- bittensor.commands.utils.check_for_cuda_reg_config(config)[source]#
Checks, when CUDA is available, if the user would like to register with their CUDA device.
- Parameters:
config (bittensor.config)
- Return type:
None
- bittensor.commands.utils.get_hotkey_wallets_for_wallet(wallet)[source]#
- Return type:
List[bittensor.wallet]
- bittensor.commands.utils.get_coldkey_wallets_for_path(path)[source]#
- Parameters:
path (str)
- Return type:
List[bittensor.wallet]
- bittensor.commands.utils.get_all_wallets_for_path(path)[source]#
- Parameters:
path (str)
- Return type:
List[bittensor.wallet]
- bittensor.commands.utils.filter_netuids_by_registered_hotkeys(cli, subtensor, netuids, all_hotkeys)[source]#
- Return type:
List[int]
- bittensor.commands.utils.normalize_hyperparameters(subnet)[source]#
Normalizes the hyperparameters of a subnet.
- Parameters:
subnet (bittensor.SubnetHyperparameters) – The subnet hyperparameters object.
- Returns:
A list of tuples containing the parameter name, value, and normalized value.
- Return type:
- class bittensor.commands.utils.DelegatesDetails[source]#
- bittensor.commands.utils._get_delegates_details_from_github(requests_get, url)[source]#
- Parameters:
url (str)
- Return type:
Dict[str, DelegatesDetails]
- bittensor.commands.utils.get_delegates_details(url)[source]#
- Parameters:
url (str)
- Return type:
Optional[Dict[str, DelegatesDetails]]