Skip to content

Commit

Permalink
fix: use logging.debug for backend inplace update warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong committed Sep 13, 2024
1 parent 734780e commit c516572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ivy/utils/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import os
import ast
import builtins
import logging

# Helpers #
# ------- #
Expand Down Expand Up @@ -380,7 +381,7 @@ def _handle_inplace_mode(ivy_pack=None):
and not ivy_pack.native_inplace_support
and ivy_pack.inplace_mode == "lenient"
):
warnings.warn(
logging.debug(
f"The current backend: '{current_backend}' does not support "
"inplace updates natively. Ivy would quietly create new arrays when "
"using inplace updates with this backend, leading to memory overhead "
Expand Down

0 comments on commit c516572

Please sign in to comment.