You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "quic-sanirudh (via GitHub)" <gi...@apache.org> on 2024/02/02 14:28:07 UTC
Re: [I] [Bug] assert_structural_equal(specialize PrimFunc, const PrimFunc) failed [tvm]
quic-sanirudh commented on issue #16489:
URL: https://github.com/apache/tvm/issues/16489#issuecomment-1923998891
I tried this out and it looks like the issue is that dtype has to be specified when creating the `decl_buffer` for specialization. The default dtype would become float32 and the const version directly specified float16.
Something like this
```python
gemm_sp = gemm.specialize(
{
data: tvm.tir.decl_buffer((4096, 4096), dtype="float16"), weight: tvm.tir.decl_buffer((4096, 4096), dtype="float16"),
}
)
```
However the printed IR for the specialized version is misleading as it shows the dtype as "float16", which I understand is why this issue was created, so that probably has to be fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org