We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the subnet does not exist, then the sum of the weights in the network root is not calculated, but raises an error.
With bittensor version 6.12 run the code:
import bittensor as bt sub = bt.subtensor() meta = sub.metagraph(netuid=0, lite=False)
This raises error:
│ ❱ 762 │ │ │ │ │ bittensor.utils.weight_utils.convert_root_weight_uids_and_vals_to_te │ │ 763 │ │ │ │ │ │ n_subnets, list(uids), list(values), subnets │ │ 764 │ │ │ │ │ ) │ │ 765 │ │ │ │ ) │ │ │ │ /home/athrun/.bittensor/bittensor/bittensor/utils/weight_utils.py:129 in │ │ convert_root_weight_uids_and_vals_to_tensor │ │ │ │ 126 │ │ if uid_j in subnets: │ │ 127 │ │ │ index_s = subnets.index(uid_j) │ │ 128 │ │ else: │ │ ❱ 129 │ │ │ raise Exception("Incorrect Subnet {uid_j} in {subnets}") │ │ 130 │ │ row_weights[index_s] = float( │ │ 131 │ │ │ wij │ │ 132 │ │ ) # assumes max-upscaled values (w_max = U16_MAX). │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ Exception: Incorrect Subnet {uid_j} in {subnets}
any os
The text was updated successfully, but these errors were encountered:
roman-opentensor
Successfully merging a pull request may close this issue.
Describe the bug
If the subnet does not exist, then the sum of the weights in the network root is not calculated, but raises an error.
To Reproduce
With bittensor version 6.12 run the code:
Expected behavior
This raises error:
Environment
any os
The text was updated successfully, but these errors were encountered: