mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "BidirectionalSequenceLSTM op: Fixes VTS test for merge_outputs"
This commit is contained in:
@@ -508,14 +508,15 @@ static bool removeOperandSkip(size_t operand, const Model& model) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// BIDIRECTIONAL_SEQUENCE_RNN can have either on or two outputs
|
||||
// depending on a mergeOutputs parameter
|
||||
if (operation.type == OperationType::BIDIRECTIONAL_SEQUENCE_RNN) {
|
||||
for (const size_t outOprand : operation.outputs) {
|
||||
if (operand == outOprand) {
|
||||
return true;
|
||||
}
|
||||
// BIDIRECTIONAL_SEQUENCE_LSTM and BIDIRECTIONAL_SEQUENCE_RNN can have
|
||||
// either one or two outputs depending on their mergeOutputs parameter.
|
||||
if (operation.type == OperationType::BIDIRECTIONAL_SEQUENCE_LSTM ||
|
||||
operation.type == OperationType::BIDIRECTIONAL_SEQUENCE_RNN) {
|
||||
for (const size_t outOprand : operation.outputs) {
|
||||
if (operand == outOprand) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user