Skip to content

Commit

Permalink
fix tensorflow incompatible types
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsKue committed Feb 7, 2025
1 parent 2c5f872 commit f135ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bayesflow/utils/integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def body(_state, _time, _step_size, _step):
time_remaining = stop_time - (_time + _step_size)

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

# reorder
min_step_size, max_step_size = (
Expand Down

0 comments on commit f135ecd

Please sign in to comment.