#NEWLINE# def get_features( self , x , layers ) : #NEWLINE# #INDENT# if ( not layers ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# f = K . function ( [ self . net_input ] , [ self . get_layer_output ( layer_name ) for layer_name in layers ] ) #NEWLINE# feature_outputs = f ( [ x ] ) #NEWLINE# features = dict ( zip ( layers , x ) ) #NEWLINE# return features