Skip to content

Commit

Permalink
fixing function inspecting for torch
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyanshBardia committed Sep 13, 2023
1 parent d2e6cea commit ccbf232
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ivy/functional/backends/torch/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def handle_soft_device_variable(*args, fn, **kwargs):
)
# checking if this function accepts `device` argument
# must be handled in the backend
if "device" in inspect.getfullargspec(fn).args:
if "device" in inspect.signature(fn).parameters:
kwargs["device"] = device_shifting_dev
return fn(*args, **kwargs)

Expand Down
2 changes: 1 addition & 1 deletion ivy/functional/ivy/experimental/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2638,7 +2638,7 @@ def choose(
@inputs_to_ivy_arrays
@handle_nestable
@handle_exceptions
@handle_device_shifting
@handle_device
def column_stack(
arrays: Sequence[Union[ivy.Array, ivy.NativeArray]],
/,
Expand Down

0 comments on commit ccbf232

Please sign in to comment.