-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(torch-frontend): Added unsupported dtype for `torch.nn.functional…
….linear` (#25966)
- Loading branch information
Showing
2 changed files
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
ivy/functional/frontends/torch/nn/functional/linear_functions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |