This is because `relay.build` optimizes the constants through constant folding. 
That said, those constants you marked have been folded and simplified. 

Actually, it is simplified in the `bind_params_by_name` function in 
`relay.build`. And if you print the output module of that you see:

```
def @main(%input: Tensor[(7), int32]) -> Tensor[(7), int32] {
  %0 = (meta[relay.Constant][0], meta[relay.Constant][1]);
  %1 = concatenate(%0, axis=-1) /* ty=Tensor[(7), int32] */;
  add(%1, %input) /* ty=Tensor[(7), int32] */
}
```

You may also want to read the comments:

https://github.com/apache/tvm/blob/main/python/tvm/relay/build_module.py#L569





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/how-params-are-converted-and-stored-in-lib-get-params/12406/2)
 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/5bfb49b503084a6bc6b5b7910a5f6e10ed2fab77cb5902b53538a8dcdc4d8e47).

Reply via email to