Skip to content

Commit 849bce1

Browse files
committed
1 parent 45edde4 commit 849bce1

File tree

1 file changed

+1
-3
lines changed
  • projects/eudsl-python-extras/mlir/extras/dialects

1 file changed

+1
-3
lines changed

projects/eudsl-python-extras/mlir/extras/dialects/arith.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,7 @@ def __init__(self, val, *, fold: Optional[bool] = None):
412412
super().__init__(val)
413413

414414
def is_constant(self) -> bool:
415-
return isinstance(self.owner, Operation) and isinstance(
416-
self.owner.opview, ConstantOp
417-
)
415+
return isinstance(self.owner, OpView) and isinstance(self.owner, ConstantOp)
418416

419417
@property
420418
@abstractmethod

0 commit comments

Comments
 (0)