mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Exclude sparse from non-functional alias (#82064)
Mutating operations typically don't work well/differently with sparse tensors, so don't assume that these composites work for sparse tensors. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/82064 Approved by: https://github.com/Chillee
This commit is contained in:
parent
a6c792df5c
commit
cab819222a
|
|
@ -28,6 +28,7 @@ constexpr DispatchKeySet non_functional_backend_dispatch_keyset =
|
|||
backend_dispatch_keyset
|
||||
// XLA and LazyTensor are currently the only 2 backends in core
|
||||
// that use functionalization pass in eager mode.
|
||||
.remove(DispatchKey::Sparse)
|
||||
.remove_backend(BackendComponent::XLABit)
|
||||
.remove_backend(BackendComponent::LazyBit);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user