Skip to content

Commit

Permalink
fix(torch-frontend): Added unsupported dtype for `torch.nn.functional…
Browse files Browse the repository at this point in the history
….linear` (#25966)
  • Loading branch information
fnhirwa authored Sep 23, 2023
1 parent 1cee783 commit c956029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ivy/functional/backends/paddle/linear_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def matmul(
paddle.uint8,
paddle.float16,
paddle.bool,
paddle.bfloat16,
]:
x1, x2 = x1.cast("float32"), x2.cast("float32")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# local
import ivy
from ivy.func_wrapper import with_unsupported_dtypes
from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back


@with_unsupported_dtypes({"2.0.1 and below": ("float16",)}, "torch")
@to_ivy_arrays_and_back
def linear(input, weight, bias=None):
return ivy.linear(input, weight, bias=bias)

0 comments on commit c956029

Please sign in to comment.