iree icon indicating copy to clipboard operation
iree copied to clipboard

Failed to legalize torch.operator "onnx.Expand"

Open vitreo12 opened this issue 7 months ago • 2 comments

What happened?

Hello!

I have been trying to iree-compile a converted onnx model, but I hit this error:

error: failed to legalize operation 'torch.operator' that was explicitly marked illegal
    %1806 = torch.operator "onnx.Expand"(%1804, %1805) : (!torch.vtensor<[],f32>, !torch.vtensor<[?],si64>) -> !torch.vtensor<[],f32> 

Looking at https://github.com/nod-ai/SHARK-Turbine/issues/215, it looks like Expand should be supported, since it's marked as completed. Is this the case? I tried with both the latest stable release and the most recent release candidate.

Steps to reproduce your issue

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What component(s) does this issue relate to?

No response

Version information

No response

Additional context

No response

vitreo12 avatar Jul 03 '24 07:07 vitreo12