Skip to content

Commit

Permalink
fix ivy: removing unnecessary decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
YushaArif99 committed Sep 7, 2024
1 parent 6aa399c commit 372006e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ivy/functional/ivy/gradients.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from ivy.func_wrapper import (
handle_array_function,
inputs_to_ivy_arrays,
inputs_to_native_arrays,
to_native_arrays_and_back,
handle_out_argument,
handle_nestable,
Expand Down Expand Up @@ -438,11 +439,8 @@ def stop_gradient(
@handle_exceptions
@handle_backend_invalid
@handle_nestable
@handle_array_like_without_promotion
@handle_out_argument
@to_native_arrays_and_back
@inputs_to_native_arrays
@handle_array_function
@handle_device
def requires_gradient(
x: Union[ivy.Array, ivy.NativeArray],
) -> bool:
Expand Down

0 comments on commit 372006e

Please sign in to comment.