onnx-mlir/test/mlir/onnx
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
..
onnx_canonicalization.mlir Lower MaxPooling and AveragePool to Krnl dialect using AffineMap (#38) 2020-04-19 21:39:34 +08:00
onnx_decompose.mlir Add the split marker to test files (#90) 2020-04-16 15:17:27 +08:00
onnx_elide_constants.mlir Rework output to improve readability of intermediate MLIR code. (#87) 2020-04-24 16:15:36 -04:00
onnx_krnl_global_elision.mlir Rework output to improve readability of intermediate MLIR code. (#87) 2020-04-24 16:15:36 -04:00
onnx_lowering.mlir Lower LSTMOp to Krnl dialect (#73) 2020-05-13 21:08:06 +08:00
onnx_lowering_with_dealloc.mlir Add the split marker to test files (#90) 2020-04-16 15:17:27 +08:00
onnx_shape_inference.mlir Lower LSTMOp to Krnl dialect (#73) 2020-05-13 21:08:06 +08:00
onnx_shape_inference_maxpool.mlir Add the split marker to test files (#90) 2020-04-16 15:17:27 +08:00