Skip to content

Commit

Permalink
fix to catch up
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Dec 17, 2023
1 parent 0005f9b commit 2148970
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mlir/utils/dialects/ext/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ def coerce(
return self, other
elif isinstance(other, Scalar):
other = tensor.splat(
RankedTensorType.get(self.shape, other.dtype), other, loc=loc, ip=ip
RankedTensorType.get(self.shape, other.dtype),
other,
[],
loc=loc,
ip=ip,
)
return self, other

Expand Down

0 comments on commit 2148970

Please sign in to comment.