leandron commented on a change in pull request #6597: URL: https://github.com/apache/incubator-tvm/pull/6597#discussion_r498351286
########## File path: tutorials/get_started/tvmc_command_line_driver.py ########## @@ -0,0 +1,313 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +""" +Getting Started with TVM command line driver - TVMC +=================================================== +**Authors**: +`Leandro Nunes <https://github.com/leandron>`_, +`Matthew Barrett <https://github.com/mbaret>`_ + +This tutorial is an introduction to working with TVMC, the TVM command +line driver. + +In this tutorial we are going to use TVMC to perform common tasks with +TVM via a command line interface. +""" + +###################################################################### +# Using TVMC +# ---------- +# +# TVMC is a Python application, part of the TVM Python package. +# When you install TVM using a Python package, you will get TVMC as +# command line application ``tvmc``. +# +# Alternatively, if you have TVM as a Python module on your +# ``$PYTHONPATH``,you can access the command line driver functionality +# via the executable python module, ``python -m tvm.driver.tvmc``. +# +# For simplicity, this tutorial will mention TVMC command line using +# ``tvmc <options>``, but the same results can be obtained with +# ``python -m tvm.driver.tvmc <options>``. +# +# You can check the help page using: +# +# .. code-block:: bash +# +# tvmc --help +# +# +# As you can see in the help page, the main features are +# accessible via the subcommands ``tune``, ``compile`` and ``run``. +# To read about specific options under a given subcommand, use +# ``tvmc <subcommand> --help``. +# +# By default, TVMC will only display error messages. In case you want +# to increase verbosity (more messages), you can do that with: +# +# .. code-block:: bash +# +# tvmc -vvv <subcommand> Review comment: In the end I removed it. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
