Skip to content

Commit

Permalink
Fix data type issue in _compute_doppler_shifts, fixes NVlabs#426
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Euchner <florian.euchner@gmail.com>
  • Loading branch information
Jeija committed May 10, 2024
1 parent 8ad32bc commit a794225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sionna/rt/solver_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -4124,7 +4124,7 @@ def _compute_doppler_shifts(self, paths, paths_tmp, velocity):
# Compute Doppler shift per path
#[num_targets, num_sources, max_num_paths]
doppler = tf.reduce_sum(velocity*k_diff, axis=-1)
doppler = tf.where(objects_mask, 0, doppler)
doppler = tf.where(objects_mask, tf.constant(0, doppler.dtype), doppler)
doppler = tf.reduce_sum(doppler, axis=0)
doppler /= self._scene.wavelength
return doppler
Expand Down

0 comments on commit a794225

Please sign in to comment.