Lunderberg opened a new pull request, #17142:
URL: https://github.com/apache/tvm/pull/17142

   Prior to this commit, TVM could only be imported if the current directory 
had write privileges.  This was due to the use of `tvm.contrib.pickle_memoize` 
to cache the winograd transformation matrices.
   
   This commit makes multiple related fixes, to ensure that (1) TVM can be 
imported regardless of directory permissions, (2) the working directory is not 
left in a cluttered state, and (3) cache files are generated in an expected 
location to be reused later.
   
   * The cache directory is only generated when required, just prior to saving 
a cache.
   
   * The cache directory defaults to `$HOME/.cache/tvm/pkl_memoize`, rather 
than `.pkl_memorize_py3` in the working directory.
   
   * The cache directory respects `XDG_CACHE_HOME`, using 
`$XDG_CACHE_HOME/tvm/pkl_memoize` if set.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to