Skip to content

Commit f135ecd

Browse files
committed
fix tensorflow incompatible types
1 parent 2c5f872 commit f135ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/utils/integrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def body(_state, _time, _step_size, _step):
199199
time_remaining = stop_time - (_time + _step_size)
200200

201201
min_step_size = time_remaining / (max_steps - _step)
202-
max_step_size = time_remaining / keras.ops.maximum(min_steps - _step, 1)
202+
max_step_size = time_remaining / keras.ops.maximum(min_steps - _step, 1.0)
203203

204204
# reorder
205205
min_step_size, max_step_size = (

0 commit comments

Comments
 (0)