def test_batch_normalized_mlp_construction():
 mlp = BatchNormalizedMLP([Tanh(), Tanh()], [5, 7, 9])
 assert all((isinstance(a, Sequence) for a in mlp.activations))
 assert all((isinstance(a.children[0], BatchNormalization) for a in mlp.activations))
 assert all((isinstance(a.children[1], Tanh) for a in mlp.activations))

def test_batch_normalized_mlp_construction ( ) : mlp = BatchNormalizedMLP ( [ Tanh ( ) , Tanh ( ) ] , [ 5 , 7 , 9 ] ) assert all ( ( isinstance ( a , Sequence ) for a in mlp . activations ) ) assert all ( ( isinstance ( a . children [ 0 ] , BatchNormalization ) for a in mlp . activations ) ) assert all ( ( isinstance ( a . children [ 1 ] , Tanh ) for a in mlp . activations ) )
test that batchnormalizedmlp performs construction correctly .