Skip to content

Commit

Permalink
onnx.LSTM - bidirectional, layout attr (#3771)
Browse files Browse the repository at this point in the history
- Support Bidirectional LSTM (utilising the forward LSTM layer with
flipped Inputs and Outputs)
- Support layout 1 
- Support default cases for attr `clip` and `input_forget`
- Support returning partial outputs (1-3)  
- fixes for alt_e2e_tests lstm tests (1,2,3)
  • Loading branch information
PhaneeshB authored Oct 8, 2024
1 parent 58489fa commit 7830c00
Show file tree
Hide file tree
Showing 3 changed files with 329 additions and 66 deletions.
1 change: 1 addition & 0 deletions include/torch-mlir/Conversion/TorchOnnxToTorch/Patterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ struct OpBinder {
Location getLoc() { return op->getLoc(); }

int getNumOperands() { return op->getNumOperands(); }
int getNumResults() { return op->getNumResults(); }

// Operand matches of different arities.
ParseResult tensorOperand(Value &value0) {
Expand Down
Loading

0 comments on commit 7830c00

Please sign in to comment.