From 372006eef9b7a0149edf284452c776a745559212 Mon Sep 17 00:00:00 2001 From: Yusha Arif Date: Sat, 7 Sep 2024 11:40:29 +0000 Subject: [PATCH] fix ivy: removing unnecessary decorators --- ivy/functional/ivy/gradients.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ivy/functional/ivy/gradients.py b/ivy/functional/ivy/gradients.py index 8d109878e3fb..61e1f0082a8c 100644 --- a/ivy/functional/ivy/gradients.py +++ b/ivy/functional/ivy/gradients.py @@ -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, @@ -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: