Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
Signed-off-by: chentong319 <[email protected]>
  • Loading branch information
chentong319 committed Sep 5, 2023
1 parent 2affba2 commit 9c94df1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/Conversion/ONNXToKrnl/RNN/LSTM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,11 @@ void calculateState<LstmState, LstmActivationPack, LstmWeightPack,
// Ht = ot (.) h(Ct)

// ToFix: add support of sequence lens for LSTM
//assert(isNoneValue(sequenceLens) && "not implemented yet");
// The assert will fail the test_lstm_with_peephole.
// In that test case, the length of the input is used as sequence_lens.
// Therefore, onnx-mlir can pass the test by ignoring the sequence_lens
// paramenter.
// assert(isNoneValue(sequenceLens) && "not implemented yet");

// TODO remove scope
MultiDialectBuilder<KrnlBuilder, MathBuilder, MemRefBuilder, OnnxBuilder>
Expand Down
2 changes: 1 addition & 1 deletion src/Conversion/ONNXToKrnl/RNN/RNN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ void calculateState<RnnState, RnnActivationPack, RnnWeightPack, RnnBiasPack>(
// Rbi: [hidden_size]

// ToFix: add support of sequenceLens for RNN
//assert(isNoneValue(sequenceLens) && "not implemented yet");
assert(isNoneValue(sequenceLens) && "not implemented yet");

MultiDialectBuilder<KrnlBuilder, MathBuilder, MemRefBuilder, OnnxBuilder>
create(rewriter, loc);
Expand Down

0 comments on commit 9c94df1

Please sign in to comment.