File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def __init__(
5858 n_gates : int ,
5959 mask : Optional [Tensor ] = None ,
6060 reg_weight : float = 1.0 ,
61- temperature : float = 2.0 / 3 ,
61+ temperature : float = 2 / 3 ,
6262 lower_bound : float = - 0.1 ,
6363 upper_bound : float = 1.1 ,
6464 eps : float = 1e-8 ,
@@ -118,16 +118,17 @@ def __init__(
118118
119119 assert (
120120 0 < temperature < 1
121- ), f"the temperature should be bwteen 0 and 1, received { temperature } "
121+ ), f"the temperature should be between 0 and 1, received { temperature } "
122122 self .temperature = temperature
123123
124124 assert (
125125 lower_bound < 0
126- ), f"the stretch lower bound should smaller than 0, received { lower_bound } "
126+ ), f"the stretch lower bound should be smaller than 0, received { lower_bound } "
127127 self .lower_bound = lower_bound
128+
128129 assert (
129130 upper_bound > 1
130- ), f"the stretch upper bound should larger than 1, received { upper_bound } "
131+ ), f"the stretch upper bound should be larger than 1, received { upper_bound } "
131132 self .upper_bound = upper_bound
132133
133134 self .eps = eps
You can’t perform that action at this time.
0 commit comments