trunk/e320689d0698ae12305459e36b87ab5a0c64fccc: [FakeTensor] Support sparse compressed tensor ctors (#192091)
- PyTorch: 967 events in the last 90 days
- PyTorch: 956th Release in the last 90 days
- Previous: earlier the same day · trunk/e42310637e81856ed12083d1aacf6fa229f6bcab: [xpu] Refine and improve MemPool functionality (#192048)
What happened
Fake impls for aten.sparse_compressed_tensor overloads run the meta kernel and restore the output device, instead of failing with a device mismatch. _to_dense fake impl now covers all sparse layouts, not just COO. FunctionalTensor wrapping a sparse tensor answers C++ layout() queries (dispatch_layout + prim.layout metadata fn); previously this hard-aborted via TensorImpl::layout_impl. Real-tensor propagation and FX…
Summary assembled by rule from the sources below