Skip to content

Commit a7a6276

Browse files
author
Roman
committed
frac_bits
1 parent e99707f commit a7a6276

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bittensor/core/chain_data/subnet_hyperparameters.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def _from_dict(cls, decoded: dict) -> "SubnetHyperparameters":
8787
adjustment_interval=decoded["adjustment_interval"],
8888
alpha_high=decoded["alpha_high"],
8989
alpha_low=decoded["alpha_low"],
90-
alpha_sigmoid_steepness=fixed_to_float(decoded["alpha_sigmoid_steepness"]),
90+
alpha_sigmoid_steepness=fixed_to_float(
91+
decoded["alpha_sigmoid_steepness"], frac_bits=32
92+
),
9193
bonds_moving_avg=decoded["bonds_moving_avg"],
9294
bonds_reset_enabled=decoded["bonds_reset_enabled"],
9395
commit_reveal_weights_enabled=decoded["commit_reveal_weights_enabled"],

0 commit comments

Comments
 (0)