fix crashes

This commit is contained in:
mcDandy
2026-02-13 23:54:11 +01:00
parent 4a265c4768
commit 04906ee2cb
+3 -3
View File
@@ -308,17 +308,17 @@ class UnifiedMathVisitor(MathExprVisitor):
def visitMulExp(self, ctx):
a = yield ctx.mulExpr()
b = yield ctx.powExpr()
b = yield ctx.shiftExpr()
return self._bin_op(a, b, torch.mul, lambda a, b: a * b)
def visitDivExp(self, ctx):
a = yield ctx.mulExpr()
b = yield ctx.powExpr()
b = yield ctx.shiftExpr()
return self._bin_op(a, b, torch.div, lambda a, b: a / b)
def visitModExp(self, ctx):
a = yield ctx.mulExpr()
b = yield ctx.powExpr()
b = yield ctx.shiftExpr()
return self._bin_op(a, b, torch.remainder, lambda a, b: a % b)
def visitPowExp(self, ctx):