-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[µTVM] Fix two warnings when deprecated forms are used #7269
Conversation
Specify the loader to be used by yaml.load as the current form used without specifying explicitly a loader is deprecated since PyYAML 5.1 and will throw a noisy warning. For details, please see: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Avoid using tvm.target.create as it's deprecated and use tvm.target.Target directly instead. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
@areusch Hi. Could you review that small patchset, please? For warning [0] I'm assuming microTVM is not locked with any old PyYAML version (i.e. < 5.1). If it's locked we could simply silence the warning, which is not so nice I think. Thanks! |
thanks for fixing these @gromero! @tmoreau89 @tqchen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the fix!
* [µTVM] Specify loader for yaml.load Specify the loader to be used by yaml.load as the current form used without specifying explicitly a loader is deprecated since PyYAML 5.1 and will throw a noisy warning. For details, please see: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> * [µTVM] Avoid using tvm.target.create Avoid using tvm.target.create as it's deprecated and use tvm.target.Target directly instead. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
* [µTVM] Specify loader for yaml.load Specify the loader to be used by yaml.load as the current form used without specifying explicitly a loader is deprecated since PyYAML 5.1 and will throw a noisy warning. For details, please see: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> * [µTVM] Avoid using tvm.target.create Avoid using tvm.target.create as it's deprecated and use tvm.target.Target directly instead. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
* [µTVM] Specify loader for yaml.load Specify the loader to be used by yaml.load as the current form used without specifying explicitly a loader is deprecated since PyYAML 5.1 and will throw a noisy warning. For details, please see: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> * [µTVM] Avoid using tvm.target.create Avoid using tvm.target.create as it's deprecated and use tvm.target.Target directly instead. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
* [µTVM] Specify loader for yaml.load Specify the loader to be used by yaml.load as the current form used without specifying explicitly a loader is deprecated since PyYAML 5.1 and will throw a noisy warning. For details, please see: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> * [µTVM] Avoid using tvm.target.create Avoid using tvm.target.create as it's deprecated and use tvm.target.Target directly instead. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
* [µTVM] Specify loader for yaml.load Specify the loader to be used by yaml.load as the current form used without specifying explicitly a loader is deprecated since PyYAML 5.1 and will throw a noisy warning. For details, please see: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> * [µTVM] Avoid using tvm.target.create Avoid using tvm.target.create as it's deprecated and use tvm.target.Target directly instead. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Hi,
This patchset addresses the following two warnings on microTVM:
[0]
[1]
Warning [0] is related to the deprecated form (no loader specified) of yaml.load(input), while the second one is related to the use of deprecated tvm.target.create().
Both warnings appear when running
micro_tflite.py
. The first one [0] whenTARGET = tvm.target.target.micro("stm32f746xx")
and the second one [1] whenTARGET = tvm.target.target.micro("host")
, which is the default target.Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.