From 86ed9640cb2e3bf1a1b49dc166bac9e4004ad8ba Mon Sep 17 00:00:00 2001 From: mcDandy Date: Tue, 20 Jan 2026 22:03:25 +0100 Subject: [PATCH] fix typo --- more_math/Parser/UnifiedMathVisitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/more_math/Parser/UnifiedMathVisitor.py b/more_math/Parser/UnifiedMathVisitor.py index 53a1512..6159288 100644 --- a/more_math/Parser/UnifiedMathVisitor.py +++ b/more_math/Parser/UnifiedMathVisitor.py @@ -28,7 +28,7 @@ class UnifiedMathVisitor(MathExprVisitor): return val.contiguous() if self._is_list(val): return torch.tensor(val, device=self.device) - return torch.brodcast(torch.tensor(val, device=self.device), self.shape).contiguous() + return torch.broadcast_to(torch.tensor(val, device=self.device), self.shape).contiguous() def _bin_op(self, a, b, torch_op, scalar_op): """