1 Commits
Author SHA1 Message Date
Marco Dal Farra 8f0b7f4d4e Restore autocast state on video predictor shutdown
Summary:
During development of an end2end test I encountered this bug.

SAM3's tracker enters a long-lived bfloat16 autocast context during model construction. Exit and clear that context when the owning video predictor shuts down so subsequent work in the same thread is not silently autocast.

___

Differential Revision: D115565123

fbshipit-source-id: 87dd514e974345d41b22a89569dd0ea3200bc53a
2026-08-13 22:33:07 -07:00