Skip to content

Commit

Permalink
fix masked scatter
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Jan 20, 2025
1 parent 04fc206 commit f17a530
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,6 @@ def _masked_scatter(
merged_dim_map: Dict[Dim, Dim],
) -> T:
if isinstance(s, Tensor):
if in_dim not in s.dims:
return s # e.g. scalar or so, independent from masking
assert isinstance(backup, Tensor)
# Do the reverse of _masked_select above.
# First replace the dims back.
Expand Down

0 comments on commit f17a530

Please sign in to comment.