#NEWLINE# def test_get_params( self , layer ) : #NEWLINE# #INDENT# assert ( layer . get_params ( ) == [ layer . W , layer . b ] ) #NEWLINE# assert ( layer . get_params ( regularizable = False ) == [ layer . b ] ) #NEWLINE# assert ( layer . get_params ( regularizable = True ) == [ layer . W ] ) #NEWLINE# assert ( layer . get_params ( trainable = True ) == [ self . W , layer . b ] ) #NEWLINE# assert ( layer . get_params ( trainable = False ) == [ ] ) #NEWLINE# assert ( layer . get_params ( _nonexistent_tag = True ) == [ ] ) #NEWLINE# assert ( layer . get_params ( _nonexistent_tag = False ) == [ layer . W , layer . b ] )