Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
aleslamitz committed Jan 29, 2024
1 parent 87d2d24 commit 103fa3f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,9 @@ def _compute_observation_log_weights(step,
observation = tf.nest.map_structure(
lambda x, step=step: tf.gather(x, observation_idx), observations)
if particles_dim != 0:
observation = tf.nest.map_structure(
lambda x: tf.expand_dims(x, axis=particles_dim), observation
)
observation = tf.nest.map_structure(
lambda x: tf.expand_dims(x, axis=particles_dim), observation
)

log_weights = observation_fn(step, particles).log_prob(observation)
return tf.where(step_has_observation,
Expand Down

0 comments on commit 103fa3f

Please sign in to comment.