def test_untied_ae():
 ae = Autoencoder(5, 7, act_enc='tanh', act_dec='cos', tied_weights=True)
 model = UntiedAutoencoder(ae)
 model._ensure_extensions()

def test_untied_ae ( ) : ae = Autoencoder ( 5 , 7 , act_enc = 'tanh' , act_dec = 'cos' , tied_weights = True ) model = UntiedAutoencoder ( ae ) model . _ensure_extensions ( )
tests that untiedautoencoder calls the model superclass constructor .