Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set remote cache version and backend type once in compilation metrics
Summary: X-link: pytorch/pytorch#141707 This is causing FbFxGraphRemoteCache.init to no longer be idempotent, i.e. only safe to call once per compile. AOTAutogradCache initializes a new remote cache for the forward and the backward. Technically, we could make AOTAutogradCache smart and globally thread through a single FbFxGraphRemoteCache everywhere. But there's no reason to do so, as this class is just the handle to access the cache. Plus, it's very brittle for FbFxGraphRemoteCache to not be safe to call multiple times. (Same problem, different fix of D66502138) ghstack-source-id: 256106154 exported-using-ghexport Reviewed By: ezyang Differential Revision: D66508492 fbshipit-source-id: 014722ba2cfbf9d30359e1eaa39062ad35cd907d
- Loading branch information