← 返回事件
持续讨论AI发版

trunk/e320689d0698ae12305459e36b87ab5a0c64fccc: [FakeTensor] Support sparse compressed tensor ctors (#192091)

图:PyTorch Releases

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源