@Ganler
But if we change the `mod[‘main’]` to `mod`, then the if-statement is not entered and the binding is not performed ```python lib = relay.build(mod, target="llvm", params=tp) print(len(lib.get_params().keys())) # 1 ``` And I added `print(mod)` before and after https://github.com/apache/tvm/blob/main/python/tvm/relay/build_module.py#L188. I am curious whether the `constant binding` performed? Is there any approach to disable it? ``` # Before def @main(%input: Tensor[(7), int32], %x2: Tensor[(2), int32], %x3: Tensor[(3), int32], %x4: Tensor[(4), int32], %x5: Tensor[(5), int32], %x6: Tensor[(6), int32]) -> Tensor[(7), int32] { %0 = (%x3, %x4); %1 = concatenate(%0, axis=-1) /* ty=Tensor[(7), int32] */; add(%1, %input) /* ty=Tensor[(7), int32] */ } # After def @main(%input: Tensor[(7), int32], %x2: Tensor[(2), int32], %x3: Tensor[(3), int32], %x4: Tensor[(4), int32], %x5: Tensor[(5), int32], %x6: Tensor[(6), int32]) -> Tensor[(7), int32] { %0 = (%x3, %x4); %1 = concatenate(%0, axis=-1) /* ty=Tensor[(7), int32] */; add(%1, %input) /* ty=Tensor[(7), int32] */ } ``` --- [Visit Topic](https://discuss.tvm.apache.org/t/how-params-are-converted-and-stored-in-lib-get-params/12406/6) 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/f3b5b6cb0087cbdf79dc40d32d8d31c6d9255e01e6982e0023875fef479db27e).