def test_stackedblocks_without_params():
 sb = StackedBlocks([Block(), Block()])
 assert (sb._params is None)

def test_stackedblocks_without_params ( ) : sb = StackedBlocks ( [ Block ( ) , Block ( ) ] ) assert ( sb . _params is None )
test stackedblocks when not all layers have trainable params .