You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(autocast): move autocast from dispatcher to autograd boundary
Apply autocast in Function::Apply before Forward/SetupContext so saved
tensors are stored in the actual forward compute dtype, instead of
guessing it from output->Dtype() inside SetupContext. Drops the duplicate
cast workaround in Matmul/Linear::SetupContext.
Add AutocastByName entry on AutocastContext (keyed by op name string)
and extend GetBaseOpName to strip the "Function" suffix used by
autograd::Function::type_.
Remove the now-redundant autocast hook from Dispatcher::Call; backward
kernels and internal helpers are no longer accidentally re-cast.
Add direct common.h includes to elementwise/gather kernels that
previously relied on the dispatcher.h -> autocast.h -> common.h
transitive include chain.
0 commit comments