onnx-mlir/test/mlir
Tung D. Le 24343177b8
Lower LSTMOp to Krnl dialect (#73)
* Support dilations and enable e2e tests

* Fix allocating memory for dynamic shape

* Edit comments

* Do dilation by computing an offset from kernel index

* Correct dilation formula, add an example of out-of-bound, and add a test for dilation

* Import optional outputs as NoneType

* Shape inference for ONNXLSTM

* Edit ONNXLSTM::inferShape()

* Shape inference for ONNXLSTMOp

* Create a common function for inferring shape for RNN ops

* CheckInsertDeallocation for a specific result

* Allocate memory for LSTM

* First round of lowering

* Allocate memory for hidden and cell states

* Test with custom Tanh

* Fix an error in Ct's formula

* Add E2E tests

* Return outputs

* Refactor the code

* Enable E2E tests

* Support reverse and bidirectional directions

* Minor revision

* Return all intermediate hidden states

* Call existing activation functions

* Structs for activation functions

* Call existing activations in ONNX

* Minor revision

* Compare strings ignoring case

* Use memreftype of rank 0 for calling activation functions

* Fix getActivationPack()

* Revise the code

* Add one MLIR test

* Add MLIR tests for reverse and bidirectional modes

* Make the order of emiting instructions deterministic

* Use OperandAdaptor instead of directly use an operand index

* Use literal assignments

* Change some variable names

* Use literal assignments

* Use literal assignments

* Format the code

Co-authored-by: Gheorghe-Teodor Bercea <gt.bercea@gmail.com>
2020-05-13 21:08:06 +08:00
..
conversion Bug fix, ensure krnl.iterate can lower in the degenerate case. (#78) 2020-04-10 23:27:00 +08:00
krnl Add the split marker to test files (#90) 2020-04-16 15:17:27 +08:00
onnx Lower LSTMOp to Krnl dialect (#73) 2020-05-13 21:08:06 +08:00
transform Support attribute promotion. (#34) 2020-03-19 15:03:37 +08:00
CMakeLists.txt Name change for tests, to be check-onnx-(lit | backend) (#62) 2020-03-31 10:06:14 -04:00
lit.cfg.py [NFC] Change ONNF based names to ONNX-MLIR (#32) 2020-03-17 09:16:33 -04:00
lit.site.cfg.py.in Add support for Windows using Visual Studio Compiler (#86) 2020-04-19 22:11:24 +08:00