[Apache TVM Discuss] [Questions] How to do heterogeneous execution on cpu and gpu?

2021-11-25 Thread wrongtest via Apache TVM Discuss
Hi~ Can this unittest case help you? https://github.com/apache/tvm/blob/be03d62e5b0afd607964365bc73e94f72fdfaaef/tests/python/relay/test_vm.py#L1071 --- [Visit Topic](https://discuss.tvm.apache.org/t/how-to-do-heterogeneous-execution-on-cpu-and-gpu/11561/2) to respond. You are receiving t

[Apache TVM Discuss] [Questions] How to do heterogeneous execution on cpu and gpu?

2021-11-25 Thread wrongtest via Apache TVM Discuss
If you are using `relay.build()` -> `graph_executor.GraphModule` path, the point I remember is that it should pass a multi-target dict into `target` argument of build and pass a device list into GraphModule like ```python lib = relay.build(relay_mod, target={"cpu": "llvm", "gpu": "cuda"}, par

[Apache TVM Discuss] [Questions] How to generate a region from for loop iter var and predicate?

2022-01-05 Thread wrongtest via Apache TVM Discuss
```python def estimate_region_lower_bound(region, var_dom, predicate): """Analyze the region with affine map, given the domain of variables and their predicate Parameters -- region : List[Range] The region to be analyzed. var_dom : Dict[Var, Range] T

[Apache TVM Discuss] [Questions] Why relay.floor_mod allows float64?

2022-02-13 Thread wrongtest via Apache TVM Discuss
Hi, as a context, we can see other dl-frameworks also allow that like https://www.tensorflow.org/api_docs/python/tf/math/floormod. For TVM, below is where float `floormod` is lowered to normal arithmetics as `a - floor(a/b) * b` https://github.com/apache/tvm/blob/7396be5645fa59cb10ae8ee14b718