Clear the autocast cache after profiling (#187) On torch<2.11 the no_grad profiling forward fills the caller's autocast cast cache, and the caller's next forward in the same autocast region reuses those grad-less casts, so its backward fails. profile() and profile_origin() now clear the cache in their finally blocks. Releases as 2.2.4.