onnx-mlir/utils
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
..
CMakeLists.txt import onnx ml operations as a separate dialect (#97) 2020-05-12 18:43:44 -04:00
build-mlir.cmd Add support for Windows using Visual Studio Compiler (#86) 2020-04-19 22:11:24 +08:00
build-mlir.sh Add support for Windows using Visual Studio Compiler (#86) 2020-04-19 22:11:24 +08:00
clone-mlir.sh Make onnx-mlir work with latest mlir. (#93) 2020-04-27 17:03:56 +08:00
gen_doc.py Lower LSTMOp to Krnl dialect (#73) 2020-05-13 21:08:06 +08:00
install-mlir.cmd Add support for Windows using Visual Studio Compiler (#86) 2020-04-19 22:11:24 +08:00
install-mlir.sh Add support for Windows using Visual Studio Compiler (#86) 2020-04-19 22:11:24 +08:00
install-onnx-mlir.cmd Enable Build on Windows again and Update CI badge (#115) 2020-05-12 23:00:19 +08:00
install-onnx-mlir.sh Move to more recent LLVM commit ID (#64) 2020-04-01 12:38:34 -04:00
setup-onnx-mlir-windows.cmd Enable Build on Windows again and Update CI badge (#115) 2020-05-12 23:00:19 +08:00