Add unboxedCallRedispatch (#35476)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35476
A few things:
- Add new callUnboxedRedispatch function which can be used to do a
redispatch when you don't want to add a type id to the excluded
set. This will recompute the dispatch key but ignore everything
including and before the currentDispatchKey
- Add FULL_AFTER constructor to DispatchKeySet; used to implement
redispatch.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Differential Revision: D20680518
Test Plan: Imported from OSS
Pulled By: ezyang
fbshipit-source-id: ecd7fbdfa916d0d2550a5b19dd3ee4a9f2272457