[GitHub] [incubator-tvm] merrymercy edited a comment on issue #6096: apply_history_best requires extract_from_program to be run even if log file already exists

2020-07-23 Thread GitBox
merrymercy edited a comment on issue #6096: URL: https://github.com/apache/incubator-tvm/issues/6096#issuecomment-663232365 @jroesch Yes, the behavior you mentioned is desired. That is designed by me to mimic the behavior of `logging.warning` in python's built-in library. The principle

[GitHub] [incubator-tvm] merrymercy edited a comment on issue #6096: apply_history_best requires extract_from_program to be run even if log file already exists

2020-07-23 Thread GitBox
merrymercy edited a comment on issue #6096: URL: https://github.com/apache/incubator-tvm/issues/6096#issuecomment-663229677 What do you mean by "remove the tuning log"? If you add `compile_engine.get().clear()`, then the result of `python3 example.py extract` will match the result of

[GitHub] [incubator-tvm] merrymercy edited a comment on issue #6096: apply_history_best requires extract_from_program to be run even if log file already exists

2020-07-23 Thread GitBox
merrymercy edited a comment on issue #6096: URL: https://github.com/apache/incubator-tvm/issues/6096#issuecomment-663221391 To prevent such issues from happening again, we can force relay to clear the cache after every `relay.build`. So the cache mechanism in relay only works within a

[GitHub] [incubator-tvm] merrymercy edited a comment on issue #6096: apply_history_best requires extract_from_program to be run even if log file already exists

2020-07-23 Thread GitBox
merrymercy edited a comment on issue #6096: URL: https://github.com/apache/incubator-tvm/issues/6096#issuecomment-663221391 To prevent such issues from happening again, we can force relay to clear the cache after every `relay.build`

[GitHub] [incubator-tvm] merrymercy edited a comment on issue #6096: apply_history_best requires extract_from_program to be run even if log file already exists

2020-07-23 Thread GitBox
merrymercy edited a comment on issue #6096: URL: https://github.com/apache/incubator-tvm/issues/6096#issuecomment-663221391 To prevent such issues happening again, we can force relay to clear the cache after every `relay.build`

[GitHub] [incubator-tvm] merrymercy edited a comment on issue #6096: apply_history_best requires extract_from_program to be run even if log file already exists

2020-07-23 Thread GitBox
merrymercy edited a comment on issue #6096: URL: https://github.com/apache/incubator-tvm/issues/6096#issuecomment-663218666 I ran the code and found adding `compile_engine.get().clear()` before `with autotvm.apply_history_best(log_filename):` acutally fixes the issue. This issue is not

[GitHub] [incubator-tvm] merrymercy edited a comment on issue #6096: apply_history_best requires extract_from_program to be run even if log file already exists

2020-07-23 Thread GitBox
merrymercy edited a comment on issue #6096: URL: https://github.com/apache/incubator-tvm/issues/6096#issuecomment-663218666 I ran the code and found adding `compile_engine.get().clear()` before `with autotvm.apply_history_best(log_filename):` acutally fixes the issue. This issue is not