relax
relax copied to clipboard
Temp repo for prototyping relax(relay next), the effort will be upstreamed. We use the wiki pages on this repo to host design docs.
In the relax script, the vars with the same name usually are the same var. However, there are two cases that break the rule. ### B1 The binding var and...
## Functionality and Robustness - [x] M0: relax lowest form ⇒ VM - [x] M0b: IRBuilder/mutator interface initial finalization - [x] M0c: build mixed TIR/Relax IRModule - [x] M1: MVP...
## TensorArray Support TensorArray is commonly used with control flow to save results in the loop. When looking into the relay IR converted from TensorFlow or PyTorch, such as TensorFlow...
Author: @YuchenJin, @yongwww ## Introduction We observe that more and more dynamic models are created with control flow, especially in the fields of object detection and natural language processing. We...
# Motivation To run a deep learning model, the mainstream approach in TVM is to do code generation with an auto-tuner, which make the performance optimization process easier for developers...
According to the development guidelines(https://github.com/octoml/relax/wiki/Relax-development-guidelines) proposed in the last open source meeting, we agree to improve the codebase quality with better error message and testing. I browsed the current codebase...
We have lots of implicit agreement on variable naming, for example: - `lv` means local variable, while `gv` means global variable - `sh` means shape variable - `storage` means storage,...
I moved the discussion from tvm forum to here because relax has not been upstreamed yet. In [relax wiki](https://github.com/octoml/relax/wiki/Relax-Architecture-Overview), ```python value = match_shape(lhs, pattern) ``` did a pattern matching that...
Currently Relax types in the script format are not namespaced, e.g. `x: Tensor[...]`. Ideally these should be namespaced like `x: relax.Tensor[...]` (with the same support for using qualified import, `R.Tensor[...]`)....
When decorating a python class with the `ir_module` decorator, the result is the parsed IRModule, which is a slight mismatch with python semantics. We expect the class identifier to be...