@vinx13
I modified reset_global_scope() in env.py into the following:
import tvm
def reset_global_scope(global_scope):
"""Reset global autotvm state. This is needed to initialize PopenPool
workers."""
global GLOBAL_SCOPE
GLOBAL_SCOPE.deep_copy(global_scope)
@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/apach
The modified code looks good to me. Maybe you can double check what's going on
inside those registrations, e.g. checking whether the mapping in c++ side is
indeed updated when `register` is called
---
[Visit
Topic](https://discuss.tvm.apache.org/t/custom-datatypes-in-autoscheduler/12377/6
@mehrdadh Big thank for the fix !
---
[Visit
Topic](https://discuss.tvm.apache.org/t/aot-ordering-of-functions-definition-is-random/12287/3)
to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click
here](https://discuss.tvm.apach