Skip to content

Commit

Permalink
Fix some typos (#8101)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
lmxyy authored May 21, 2021
1 parent 3b8715d commit d8fd5bd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/tvm/exec/query_rpc_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


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")
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/exec/rpc_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/exec/rpc_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


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()

Expand Down
2 changes: 1 addition & 1 deletion python/tvm/rpc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _accept_conn(listen_sock, tracker_conn, ping_period=2):
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
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/rpc/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def summary(self):
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()
Expand Down
2 changes: 1 addition & 1 deletion tutorials/auto_scheduler/tune_network_arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def get_network(name, batch_size, layout="NHWC", dtype="float32", use_sparse=Fal
# 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
Expand Down

0 comments on commit d8fd5bd

Please sign in to comment.