Skip to content

Commit

Permalink
fix: logging weights correctly in utils/weight_utils.py (#2362)
Browse files Browse the repository at this point in the history
* Updates changelog

* fix: logging weights correctly in utils/weight_utils.py

* Update CHANGELOG.md
  • Loading branch information
grantdfoster authored Nov 6, 2024
1 parent 22e1557 commit 570f38a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1125,5 +1125,4 @@ This release refactors the registration code for CPU registration to improve sol

### Synapse update

##

##
4 changes: 2 additions & 2 deletions bittensor/utils/weight_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def process_weights_for_netuid(
if use_torch()
else np.ones((metagraph.n), dtype=np.int64) / metagraph.n
)
logging.debug("final_weights", final_weights)
logging.debug("final_weights", *final_weights)
final_weights_count = (
torch.tensor(list(range(len(final_weights))))
if use_torch()
Expand Down Expand Up @@ -356,7 +356,7 @@ def process_weights_for_netuid(
normalized_weights = normalize_max_weight(
x=non_zero_weights, limit=max_weight_limit
)
logging.debug("final_weights", normalized_weights)
logging.debug("final_weights", *normalized_weights)

return non_zero_weight_uids, normalized_weights

Expand Down

0 comments on commit 570f38a

Please sign in to comment.