You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by co...@apache.org on 2021/05/21 16:30:29 UTC

[tvm] branch main updated: Fix some typos (#8101)

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

comaniac 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 d8fd5bd  Fix some typos (#8101)
d8fd5bd is described below

commit d8fd5bd6bb47eb984f125ffbe87c6033c3e5d471
Author: Muyang Li <lm...@users.noreply.github.com>
AuthorDate: Sat May 22 00:30:02 2021 +0800

    Fix some typos (#8101)
    
    * fix bugs in the auto scheduler record:
    
    * reformat the code
    
    * reformat the code
    
    * use the os.path.abspath
    
    * change error to warning
    
    * reformat the warning code
    
    * fix some typos
    
    * fix some typos
    
    * fix some typos
    
    * fix the port number typo
---
 python/tvm/exec/query_rpc_tracker.py         | 2 +-
 python/tvm/exec/rpc_proxy.py                 | 2 +-
 python/tvm/exec/rpc_tracker.py               | 2 +-
 python/tvm/rpc/server.py                     | 2 +-
 python/tvm/rpc/tracker.py                    | 2 +-
 tutorials/auto_scheduler/tune_network_arm.py | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/python/tvm/exec/query_rpc_tracker.py b/python/tvm/exec/query_rpc_tracker.py
index febd093..4fbf3ae 100644
--- a/python/tvm/exec/query_rpc_tracker.py
+++ b/python/tvm/exec/query_rpc_tracker.py
@@ -24,7 +24,7 @@ from .. import rpc
 
 
 def main():
-    """Main funciton"""
+    """Main function"""
     parser = argparse.ArgumentParser()
     parser.add_argument("--host", type=str, default="", help="the hostname of the tracker")
     parser.add_argument("--port", type=int, default=None, help="The port of the RPC")
diff --git a/python/tvm/exec/rpc_proxy.py b/python/tvm/exec/rpc_proxy.py
index 3aa93e6..7eae4fe 100644
--- a/python/tvm/exec/rpc_proxy.py
+++ b/python/tvm/exec/rpc_proxy.py
@@ -44,7 +44,7 @@ def find_example_resource():
 
 
 def main(args):
-    """Main funciton"""
+    """Main function"""
     if args.tracker:
         url, port = args.tracker.split(":")
         port = int(port)
diff --git a/python/tvm/exec/rpc_tracker.py b/python/tvm/exec/rpc_tracker.py
index 091e95a..961dd45 100644
--- a/python/tvm/exec/rpc_tracker.py
+++ b/python/tvm/exec/rpc_tracker.py
@@ -22,7 +22,7 @@ from ..rpc.tracker import Tracker
 
 
 def main(args):
-    """Main funciton"""
+    """Main function"""
     tracker = Tracker(args.host, port=args.port, port_end=args.port_end, silent=args.silent)
     tracker.proc.join()
 
diff --git a/python/tvm/rpc/server.py b/python/tvm/rpc/server.py
index bfde74f..c07e88b 100644
--- a/python/tvm/rpc/server.py
+++ b/python/tvm/rpc/server.py
@@ -250,7 +250,7 @@ def _listen_loop(sock, port, rpc_key, tracker_addr, load_library, custom_addr):
             import psutil
 
             parent = psutil.Process(server_proc.pid)
-            # terminate worker childs
+            # terminate worker children
             for child in parent.children(recursive=True):
                 child.terminate()
             # terminate the worker
diff --git a/python/tvm/rpc/tracker.py b/python/tvm/rpc/tracker.py
index 25ff15c..9506a52 100644
--- a/python/tvm/rpc/tracker.py
+++ b/python/tvm/rpc/tracker.py
@@ -182,7 +182,7 @@ class TCPEventHandler(tornado_util.TCPHandler):
         return self._info
 
     def _init_conn(self, message):
-        """Initialie the connection"""
+        """Initialize the connection"""
         if len(message) != 4:
             logger.warning("Invalid connection from %s", self.name())
             self.close()
diff --git a/tutorials/auto_scheduler/tune_network_arm.py b/tutorials/auto_scheduler/tune_network_arm.py
index d6d8097..a7a844b 100644
--- a/tutorials/auto_scheduler/tune_network_arm.py
+++ b/tutorials/auto_scheduler/tune_network_arm.py
@@ -235,7 +235,7 @@ target = tvm.target.Target("llvm -mtriple=aarch64-linux-gnu -mattr=+neon")
 # Also replace this with the device key, rpc host and rpc port in your tracker
 device_key = "rasp4b-64"
 rpc_host = "127.0.0.1"
-rpc_port = 9191
+rpc_port = 9190
 
 # Set this to True if you use ndk tools for cross compiling
 # And also set the environment variable below to point to the cross compiler