diff --git a/ivy/functional/ivy/experimental/layers.py b/ivy/functional/ivy/experimental/layers.py index f035666e7f6dd..623256ce48849 100644 --- a/ivy/functional/ivy/experimental/layers.py +++ b/ivy/functional/ivy/experimental/layers.py @@ -2528,7 +2528,7 @@ def sliding_window( padding=padding, ) - if ivy.current_backend_str == "tensorflow": + if ivy.current_backend_str() == "tensorflow": return ivy.current_backend(input).sliding_window( input, kernel_size, @@ -2537,7 +2537,7 @@ def sliding_window( padding=padding, ) - if ivy.current_backend_str == "paddle": + if ivy.current_backend_str() == "paddle": return ivy.current_backend(input).sliding_window( input, kernel_size,