<p dir="auto">the bug is described at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="223226628" data-permission-text="Title is private" data-url="https://github.com/pytorch/examples/issues/148" data-hovercard-type="issue" data-hovercard-url="/pytorch/examples/issues/148/hovercard" href="https://github.com/pytorch/examples/issues/148">pytorch/examples#148</a>. I just wonder if this is a bug in PyTorch itself, as the example code looks clean to me. Also, I wonder if this is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="217418696" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/1120" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/1120/hovercard" href="https://github.com/pytorch/pytorch/issues/1120">#1120</a>.</p>
<h2 dir="auto">🚀 Feature</h2>
<p dir="auto">Add sparse tensor support for torch.blkdiag.</p>
<h2 dir="auto">Motivation</h2>
<p dir="auto">Dense matrix support was implemented for issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="546587908" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/31932" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/31932/hovercard" href="https://github.com/pytorch/pytorch/issues/31932">#31932</a>, but we need sparse as well.</p>
<h2 dir="auto">Pitch</h2>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="546587908" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/31932" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/31932/hovercard" href="https://github.com/pytorch/pytorch/issues/31932">#31932</a></p>
<h2 dir="auto">Alternatives</h2>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="546587908" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/31932" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/31932/hovercard" href="https://github.com/pytorch/pytorch/issues/31932">#31932</a></p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vincentqb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vincentqb">@vincentqb</a></p>