Skip to content

Commit f1cdbbd

Browse files
committed
fix scm
1 parent cede7f8 commit f1cdbbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/experimental/stable_consistency_model/stable_consistency_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def get_config(self):
132132
def _discretize_time(self, num_steps: int, rho: float = 3.5, **kwargs):
133133
t = keras.ops.linspace(0.0, pi / 2, num_steps)
134134
times = keras.ops.exp((t - pi / 2) * rho) * pi / 2
135-
times.at[0].set(0.0)
135+
times = keras.ops.concatenate([keras.ops.zeros((1,)), times[1:]], axis=0)
136136

137137
# if rho is set too low, bad schedules can occur
138138
if times[1] > StableConsistencyModel.EPS_WARN:

0 commit comments

Comments
 (0)