public static List < String > getInboundLayerNamesFromConfig ( Map < String , Object > layerConfig , KerasLayerConfiguration conf ) { List < String > inboundLayerNames = new ArrayList <> ( ) ; if ( layerConfig . containsKey ( conf . getLAYER_FIELD_INBOUND_NODES ( ) ) ) { List < Object > inboundNodes = ( List < Object > ) layerConfig . get ( conf . getLAYER_FIELD_INBOUND_NODES ( ) ) ; if ( ! inboundNodes . isEmpty ( ) ) { inboundNodes = ( List < Object > ) inboundNodes . get ( 0 ) ; for ( Object o : inboundNodes ) { String nodeName = ( String ) ( ( List < Object > ) o ) . get ( 0 ) ; inboundLayerNames . add ( nodeName ) ; } } } return inboundLayerNames ; }
Get list of inbound layers from Keras layer configuration .