Thanks for the reply, @FrozenGene! 

The signatures of the two functions are: 
```
def _alter_conv2d_layout(attrs, inputs, types, out_type):
```

```
def _qnn_conv2d_legalize_arm_cpu(attrs, inputs, types):
```
While they look similar, `inputs` in `_alter_conv2d_layout` contains actual 
`Tensor`s while `inputs` in `_qnn_conv2d_legalize_arm_cpu` are of class 
`tvm.relay.expr.Var`.

Is there a way to get the tensors during legalization from variables of type 
`tvm.relay.expr.Var`?

Thanks a lot,

Giuseppe





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/quantized-models-and-legalization-pass/8253/4)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/0e0a7bc211f97447cb43bf88e6e1dfa6e943ba6981d1dba8df61eb4d70e80549).

Reply via email to