diff --git a/ivy/functional/backends/torch/experimental/linear_algebra.py b/ivy/functional/backends/torch/experimental/linear_algebra.py index 20980c4769915..fb55a53c1ffb3 100644 --- a/ivy/functional/backends/torch/experimental/linear_algebra.py +++ b/ivy/functional/backends/torch/experimental/linear_algebra.py @@ -198,7 +198,7 @@ def dot( *, out: Optional[torch.Tensor] = None, ) -> torch.Tensor: - return torch.dot(a, b, out=out) + return torch.matmul(a, b) dot.support_native_out = True diff --git a/ivy/functional/ivy/experimental/linear_algebra.py b/ivy/functional/ivy/experimental/linear_algebra.py index b59a35c2c33fa..249df35212e17 100644 --- a/ivy/functional/ivy/experimental/linear_algebra.py +++ b/ivy/functional/ivy/experimental/linear_algebra.py @@ -1652,7 +1652,7 @@ def dot( >>> a = ivy.array([[1, 2], [3, 4]]) >>> b = ivy.array([[5, 6], [7, 8]]) - >>> c = ivy.empty_like(d) + >>> c = ivy.empty_like(a) >>> ivy.dot(a, b, out=c) >>> print(c) ivy.array([[19, 22],