bittensor
bittensor copied to clipboard
Why weight value must be int in hashing weights commit?
Describe the bug
I faced a error when adding commit/reveal weights to subnet Finally i found that weights must be a list of int, though weights should be a float list sum to 1 as before. This function: https://github.com/opentensor/bittensor/blob/master/bittensor/utils/weight_utils.py#L372
To Reproduce
Run Validator on this PR https://github.com/NicheTensor/NicheImage/pull/75
Expected behavior
/home/ubuntu/miniconda3/envs/main/lib/python3.10/site-packages/bittensor/utils/weight_utils.py:3 │
│ 88 in
Screenshots
No response
Environment
Linux Ubuntu
Additional context
No response