tkonolige commented on pull request #6671:
URL: https://github.com/apache/incubator-tvm/pull/6671#issuecomment-717536336


   @merrymercy The goal of this pr is to make autotuning and auto scheduling 
work on macOS and windows. Currently autotvm does not work on macOS, so that is 
why I have been touching it.
   
   The tutorial you are using is broken. All code that needs to be run should 
be within an `if __name__ == "__main__":` statement. With this statement, and 
changing n_trials to 100, I get these results:
   
   On main
   ```
   SA iter: 50  last_update: 49 max-0: 5.05     max-1: 5.32     temp: 0.90      
elapsed: 22.72
   SA iter: 100 last_update: 98 max-0: 5.19     max-1: 5.43     temp: 0.80      
elapsed: 44.25
   SA iter: 150 last_update: 147        max-0: 5.19     max-1: 5.43     temp: 
0.70      elapsed: 65.84
   SA iter: 200 last_update: 198        max-0: 5.29     max-1: 5.43     temp: 
0.60      elapsed: 87.38
   SA iter: 250 last_update: 248        max-0: 5.29     max-1: 5.43     temp: 
0.50      elapsed: 108.47
   SA iter: 300 last_update: 299        max-0: 5.31     max-1: 5.43     temp: 
0.40      elapsed: 129.17
   SA iter: 350 last_update: 331        max-0: 5.32     max-1: 5.43     temp: 
0.30      elapsed: 149.26
   SA iter: 400 last_update: 396        max-0: 5.32     max-1: 5.43     temp: 
0.20      elapsed: 168.95
   SA iter: 450 last_update: 448        max-0: 5.32     max-1: 5.43     temp: 
0.10      elapsed: 187.60
   SA iter: 500 last_update: 499        max-0: 5.32     max-1: 5.43     temp: 
0.00      elapsed: 204.33
   SA iter: 500 last_update: 499        elapsed: 204.33
   ```
   
   On this PR
   ```
   SA iter: 50  last_update: 49 max-0: 6.39     max-1: 6.87     temp: 0.90      
elapsed: 23.53
   SA iter: 100 last_update: 97 max-0: 6.56     max-1: 7.05     temp: 0.80      
elapsed: 46.57
   SA iter: 150 last_update: 149        max-0: 6.68     max-1: 7.05     temp: 
0.70      elapsed: 69.27
   SA iter: 200 last_update: 192        max-0: 6.69     max-1: 7.05     temp: 
0.60      elapsed: 91.90
   SA iter: 250 last_update: 238        max-0: 6.71     max-1: 7.05     temp: 
0.50      elapsed: 114.53
   SA iter: 300 last_update: 294        max-0: 6.77     max-1: 7.05     temp: 
0.40      elapsed: 136.67
   SA iter: 350 last_update: 348        max-0: 6.77     max-1: 7.05     temp: 
0.30      elapsed: 158.47
   SA iter: 400 last_update: 398        max-0: 6.87     max-1: 7.05     temp: 
0.20      elapsed: 179.36
   SA iter: 450 last_update: 447        max-0: 6.87     max-1: 7.05     temp: 
0.10      elapsed: 198.81
   SA iter: 500 last_update: 497        max-0: 6.87     max-1: 7.05     temp: 
0.00      elapsed: 216.06
   SA iter: 500 last_update: 497        elapsed: 216.06
   ```
   
   Which has the runtime pretty close (I'm not sure what the variance on times 
is here).


----------------------------------------------------------------
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]


Reply via email to