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>
This commit is contained in:
		
							parent
							
								
									63c9223bc2
								
							
						
					
					
						commit
						3900d9ff06
					
				| @ -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]); | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user