diff --git a/bittensor/utils/weight_utils.py b/bittensor/utils/weight_utils.py index 7a3d489ca6..0a46e5ea37 100644 --- a/bittensor/utils/weight_utils.py +++ b/bittensor/utils/weight_utils.py @@ -251,7 +251,7 @@ def process_weights_for_netuid( metagraph = subtensor.metagraph(netuid) # Cast weights to floats. - if not use_torch(): + if use_torch(): if not isinstance(weights, torch.FloatTensor): weights = weights.type(torch.float32) else: