Open jinevening opened 1 month ago
@jinevening Could you assign me to this issue?
... sometimes generates unnecessary cast in diffusion model.
So, it's hard or impossible to fix circle-exir
for this case?
Why am I asking? Cast
with F32-F32 looks a bug to me.
It's possible to fix circle-exir
. I made this issue in ONE, because it looks like a general optimization. This can be seen as a bug, but sometimes converting tools just generate redundant patterns. We've handled many such patterns in ONE.
If you think this is unnecessary, I'll close this issue. Could you give your opinion?
but sometimes converting tools just generate redundant patterns.
I was just curious about the task. I'll give a +1 for this :) Let's go on with this task !
What
Let's remove unnecessary cast (input dtype == output dtype). The final goal of this task is to add
--remove_unnecessary_cast
option toone-optimize
.Why
Our frontend converter (circle-exir) sometimes generates unnecessary cast in diffusion model.