Skip to content

Commit

Permalink
Fix typo in tutorial doc (apache#10974)
Browse files Browse the repository at this point in the history
Fix typo in the commented out code in TVMC Python tutorial.
  • Loading branch information
alexqdh authored and altanh committed Apr 28, 2022
1 parent 7e8f7d6 commit b9d58e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gallery/tutorial/tvmc_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#
# .. code-block:: python
#
# #model = tvmc.load(my_model, shape_dict={'input1' : [1, 2, 3, 4], 'input2' : [1, 2, 3, 4]}) #Step 1: Load + shape_dict
# #model = tvmc.load('my_model.onnx', shape_dict={'input1' : [1, 2, 3, 4], 'input2' : [1, 2, 3, 4]}) #Step 1: Load + shape_dict
#
# A suggested way to see the model's input/shape_dict is via `netron <https://netron.app/>`_. After opening the model,
# click the first node to see the name(s) and shape(s) in the inputs section.
Expand Down Expand Up @@ -111,7 +111,7 @@
# result = tvmc.run(package, device="cpu") #Step 3: Run
#
# And you can print the results:
# ``print(results)``
# ``print(result)``
#

################################################################################
Expand Down Expand Up @@ -202,10 +202,10 @@
#
# .. code-block:: python
#
# tvmc.compile(model, target="llvm", package_path="whatever")
# tvmc.compile(model, target="llvm", package_path="whatever") #Step 2: Compile
#
# new_package = tvmc.TVMCPackage(package_path="whatever")
# result = tvmc.run(new_package) #Step 3: Run
# result = tvmc.run(new_package, device="cpu") #Step 3: Run
#
#

Expand Down Expand Up @@ -237,7 +237,7 @@
# log_file = "hello.json"
#
# # Run tuning
# tvmc.tune(model, target="llvm",tuning_records=log_file)
# tvmc.tune(model, target="llvm", tuning_records=log_file)
#
# ...
#
Expand Down Expand Up @@ -285,7 +285,7 @@
# model,
# target=target, # Compilation target as string // Device to compile for
# target_host=target_host, # Host processor
# hostname=host_ip_address, #The IP address of an RPC tracker, used when benchmarking remotely.
# hostname=host_ip_address, # The IP address of an RPC tracker, used when benchmarking remotely.
# port=port_number, # The port of the RPC tracker to connect to. Defaults to 9090.
# rpc_key=your_key, # The RPC tracker key of the target device. Required when rpc_tracker is provided
# )
Expand Down

0 comments on commit b9d58e2

Please sign in to comment.