#NEWLINE# def __init__( self , kernels , index_dim = ( - 1 ) , name = 'independ' ) : #NEWLINE# #INDENT# assert isinstance ( index_dim , int ) , 'IndependentOutputs kernel is only defined with one input dimension being the index' #NEWLINE# if ( not isinstance ( kernels , list ) ) : #NEWLINE# #INDENT# self . single_kern = True #NEWLINE# self . kern = kernels #NEWLINE# kernels = [ kernels ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . single_kern = False #NEWLINE# self . kern = kernels #NEWLINE# #UNINDENT# super ( IndependentOutputs , self ) . __init__ ( kernels = kernels , extra_dims = [ index_dim ] , name = name ) #NEWLINE# self . index_dim = ( - 1 )