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

csullivan 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 9d5782f10b [tests][hexagon] Fix `allocate_hexagon_array` bug. (#11709)
9d5782f10b is described below

commit 9d5782f10b8e8db47527e09466d8be0b5a7998b3
Author: Christian Convey <[email protected]>
AuthorDate: Tue Jun 14 14:47:35 2022 -0400

    [tests][hexagon] Fix `allocate_hexagon_array` bug. (#11709)
    
    Fix bug where `allocate_hexagon_array` in
    `tests/python/contrib/test_hexagon/infrastructure.py` wasn't
    respecting the caller-specified `memory_scope`.
---
 tests/python/contrib/test_hexagon/infrastructure.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/python/contrib/test_hexagon/infrastructure.py 
b/tests/python/contrib/test_hexagon/infrastructure.py
index 0c9a9478c8..01eef86e6b 100644
--- a/tests/python/contrib/test_hexagon/infrastructure.py
+++ b/tests/python/contrib/test_hexagon/infrastructure.py
@@ -48,7 +48,7 @@ def allocate_hexagon_array(
         for dim_i, dim_f in zip(boundaries[:-1], boundaries[1:])
     ]
 
-    arr = tvm.nd.empty(physical_shape, dtype=dtype, device=dev)
+    arr = tvm.nd.empty(physical_shape, dtype=dtype, device=dev, 
mem_scope=mem_scope)
 
     if data is not None:
         arr.copyfrom(data.reshape(physical_shape))

Reply via email to