TaylorHere opened a new issue, #11783:
URL: https://github.com/apache/tvm/issues/11783

   Thanks for participating in the TVM community! We use https://discuss.tvm.ai 
for any general usage questions and discussions. The issue tracker is used for 
actionable items such as feature proposals discussion, roadmaps, and bug 
tracking.  You are always welcomed to post on the forum first :smile_cat:
   
   Issues that are inactive for a period of time may get closed. We adopt this 
policy so that we won't lose track of actionable issues that may fall at the 
bottom of the pile. Feel free to reopen a new one if you feel there is an 
additional problem that needs attention when an old one gets closed.
   
   ### Expected behavior
   
   compile an ONNX model with Expand op
   
   ### Actual behavior
   
   ```shell
   File ~/src/tvm/python/tvm/relay/frontend/onnx.py:2238, in 
Expand._impl_v8(cls, inputs, attr, params)
      2235     new_shape = _op.maximum(in_shape, shape)
      2236     return new_shape
   -> 2238 shape = fold_constant(expand_shape(in_shape, shape))
      2239 return _op.broadcast_to(inputs[0], shape=shape)
   
   File ~/src/tvm/python/tvm/relay/frontend/onnx.py:2207, in 
Expand._impl_v8.<locals>.expand_shape(in_shape, shape)
      2204 in_dims = infer_shape(in_shape)[0]
      2205 new_dims = infer_shape(shape)[0]
   -> 2207 if in_dims < new_dims:
      2208     in_shape = _op.concatenate(
      2209         [
      2210             _expr.const(
      (...)
      2219         axis=0,
      2220     )
      2221 elif new_dims > in_dims:
   
   File ~/src/tvm/python/tvm/tir/expr.py:185, in ExprOp.__bool__(self)
       184 def __bool__(self):
   --> 185     return self.__nonzero__()
   
   File ~/src/tvm/python/tvm/tir/expr.py:179, in ExprOp.__nonzero__(self)
       178 def __nonzero__(self):
   --> 179     raise ValueError(
       180         "Cannot use and / or / not operator to Expr, hint: "
       181         + "use tvm.tir.all / tvm.tir.any instead"
       182     )
   
   ValueError: Cannot use and / or / not operator to Expr, hint: use 
tvm.tir.all / tvm.tir.any instead
   ```
   
   ### Environment
   
   Any environment details, such as: Operating System, TVM version, etc
   ```
               .-/+oossssoo+/-.               taylor@x1 
           `:+ssssssssssssssssss+:`           --------- 
         -+ssssssssssssssssssyyssss+-         OS: Ubuntu 22.04 LTS x86_64 
       .ossssssssssssssssssdMMMNysssso.       Host: 21CBA002CD ThinkPad X1 
Carbon Gen 10 
      /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.15.0-39-generic 
     +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 1 day, 2 hours, 29 mins 
    /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2178 (dpkg), 10 
(flatpak), 19 (snap) 
   .ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: zsh 5.8.1 
   +sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 2240x1400 
   ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 42.1 
   ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
   +sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
   .ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru-dark [GTK2/3] 
    /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru [GTK2/3] 
     +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
      /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: 12th Gen Intel i5-1240P (16) 
@ 4.400GHz 
       .ossssssssssssssssssdMMMNysssso.       GPU: Intel Alder Lake-P 
         -+sssssssssssssssssyyyssss+-         Memory: 5570MiB / 15701MiB 
           `:+ssssssssssssssssss+:`
               .-/+oossssoo+/-.                                       
                                                                      
   ```
   TVM version
   build from source with `intel-mkl` `llvm` `openmp`
   at tag `v0.8.0`
   
   ### Steps to reproduce
   
   Preferably a minimal script to cause the issue to occur.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to