Simple fix in bidirectional lstm import (#293)

* first pass

Signed-off-by: eraly <susan.eraly@gmail.com>

* cleanup

Signed-off-by: eraly <susan.eraly@gmail.com>
master
Susan Eraly 2020-03-30 03:07:47 -07:00 committed by GitHub
parent 63c9223bc2
commit 3900d9ff06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ public class KerasBidirectional extends KerasLayer {
"Keras Bidirectional layer accepts only one input (received " + inputType.length + ")");
InputPreProcessor preProcessor = getInputPreprocessor(inputType);
if (preProcessor != null)
return preProcessor.getOutputType(inputType[0]);
return this.getBidirectionalLayer().getOutputType(-1, preProcessor.getOutputType(inputType[0]));
else
return this.getBidirectionalLayer().getOutputType(-1, inputType[0]);
}