TensorRT 8.0
Does trt 8.0 support Bidirectional LSTM ?
from keras.layers import Bidirectional
from keras.layers.recurrent import LSTMx = Bidirectional(LSTM(32, return_sequences=True))(x)
$ trtexec --onnx=./bidirectional_LSTM_.onnx --saveEngine=my.engine
gets the below error
[08/02/2021-06:12:13] [E] [TRT] ModelImporter.cpp:723: --- End node ---
[08/02/2021-06:12:13] [E] [TRT] ModelImporter.cpp:725: ERROR: builtin_op_importers.cpp:2339 In function importLSTM:
[8] Assertion failed: std::equal(activationAlphas.begin(), activationAlphas.begin() + NUM_ACTIVATIONS, activationAlphas.begin() + NUM_ACTIVATIONS) && "The parser does not currently support cases where activations for the reverse pass of the LSTM do not match the forward pass."
[08/02/2021-06:12:13] [E] Failed to parse onnx file
[08/02/2021-06:12:13] [I] Finish parsing network model
[08/02/2021-06:12:13] [E] Parsing model failed
[08/02/2021-06:12:13] [E] Engine creation failed
[08/02/2021-06:12:13] [E] Engine set up failed
Thanks