mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[AOTI] Add more fallback ops (#126720)
Summary: These ops are either in either unit tests or TorchBench. Fixes https://github.com/pytorch/pytorch/issues/122050 Pull Request resolved: https://github.com/pytorch/pytorch/pull/126720 Approved by: https://github.com/chenyang78
This commit is contained in:
committed by
PyTorch MergeBot
parent
0d17aae242
commit
19cd4484ec
@ -333,6 +333,8 @@ def get_backend_index_for_aoti(
|
||||
backend_index = backend_indices[
|
||||
DispatchKey.CompositeExplicitAutogradNonFunctional
|
||||
]
|
||||
elif backend_indices[DispatchKey.CompositeImplicitAutograd].has_kernel(func):
|
||||
backend_index = backend_indices[DispatchKey.CompositeImplicitAutograd]
|
||||
|
||||
return backend_index
|
||||
|
||||
@ -471,6 +473,7 @@ extern "C" {{
|
||||
#include <ATen/{str(dispatch_key)}Functions.h>
|
||||
#include <ATen/CompositeExplicitAutogradFunctions.h>
|
||||
#include <ATen/CompositeExplicitAutogradNonFunctionalFunctions.h>
|
||||
#include <ATen/CompositeImplicitAutogradFunctions.h>
|
||||
#else
|
||||
{includes}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user