You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/09/22 15:12:30 UTC

[GitHub] [tvm] vinx13 commented on a change in pull request #9032: [Auto-Schedule][Fix] Fix hang while tune model through rpc

vinx13 commented on a change in pull request #9032:
URL: https://github.com/apache/tvm/pull/9032#discussion_r714046563



##########
File path: python/tvm/auto_scheduler/measure.py
##########
@@ -917,11 +918,11 @@ def _timed_eval_func(
                         get_const_tuple(build_res_arg.shape), build_res_arg.dtype, dev
                     )
                     random_fill(empty_array)
-                    args[idx] = empty_array
+                    loc_args.append(empty_array)
                 else:
-                    args[idx] = ndarray.array(args[idx], dev)
+                    loc_args.append(ndarray.array(arg))

Review comment:
       ```suggestion
                       loc_args.append(ndarray.array(arg, dev))
   ```
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org