This is an automated email from the ASF dual-hosted git repository.

tlopex pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 527fbf58a7 [Relax] Fix deprecation warning (#19424)
527fbf58a7 is described below

commit 527fbf58a7d8e96b144dbc47080cb820a42f1819
Author: Neo Chien <[email protected]>
AuthorDate: Tue Apr 21 00:26:22 2026 +0800

    [Relax] Fix deprecation warning (#19424)
    
    ### Issue
    <img width="1232" height="477" alt="image"
    
src="https://github.com/user-attachments/assets/02ca7d54-a172-4ebf-8469-ece01482237a";
    />
    
    
    ### Summary
    The DeprecationWarning: invalid escape sequence `\` cam from ASCII-art
    docstrings containing backslashes. I updated those docstrings to raw
    strings(`r"""...."""`) in test_texture_ops.py.
    
    Co-authored-by: cchung100m <[email protected]>
---
 tests/python/relax/backend/adreno/test_texture_ops.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/python/relax/backend/adreno/test_texture_ops.py 
b/tests/python/relax/backend/adreno/test_texture_ops.py
index a0536dade3..cfd2f358df 100644
--- a/tests/python/relax/backend/adreno/test_texture_ops.py
+++ b/tests/python/relax/backend/adreno/test_texture_ops.py
@@ -438,7 +438,7 @@ def test_binary_ewise_scalar(target):
 @requires_adreno_opencl_vulkan
 @tvm.testing.parametrize_targets(*TARGETS)
 def test_residual_block(target):
-    """
+    r"""
     - some kind of residual block followed by convolution to have texture 
after residual block
     - scalar data type verification which should be mapped to global memory 
scope
         layout_transform (NCHW->NCHW4c)
@@ -486,7 +486,7 @@ def test_residual_block(target):
 @requires_adreno_opencl_vulkan
 @tvm.testing.parametrize_targets(*TARGETS)
 def test_conv2d_conv2d_fallback_to_buffer_conv2d(target):
-    """
+    r"""
         layout_transform (NCHW->NCHW4c)
                   |                      <- texture
                 conv2d (1)               <- textures as output
@@ -525,7 +525,7 @@ def test_conv2d_conv2d_fallback_to_buffer_conv2d(target):
 @requires_adreno_opencl_vulkan
 @tvm.testing.parametrize_targets(*TARGETS)
 def test_conv2d_conv2d_conv2d_concat(target):
-    """
+    r"""
         layout_transform (NCHW->NCHW4c)
                   |                      <- texture
                 conv2d (1)               <- textures as output
@@ -565,7 +565,7 @@ def test_conv2d_conv2d_conv2d_concat(target):
 @requires_adreno_opencl_vulkan
 @tvm.testing.parametrize_targets(*TARGETS)
 def test_pooling_branching_texture_params(target):
-    """
+    r"""
     Verification of the pooling and many branches having textures
                 layout_transform (NCHW->NCHW4c)
                          |                        <- texture
@@ -616,7 +616,7 @@ def test_pooling_branching_texture_params(target):
 @requires_adreno_opencl_vulkan
 @tvm.testing.parametrize_targets(*TARGETS)
 def test_injective_inputs1(target):
-    """
+    r"""
                                      Input
                                /                   \
                             /                      |
@@ -665,7 +665,7 @@ def test_injective_inputs1(target):
 @requires_adreno_opencl_vulkan
 @tvm.testing.parametrize_targets(*TARGETS)
 def test_injective_nwo_inputs2(target):
-    """
+    r"""
                                      Input
                                /             \
                          |                    \

Reply via email to