HybridSequential¶
-
class
HybridSequential(prefix=None, params=None)¶ Stacks HybridBlocks sequentially.
Example:
net = nn.HybridSequential() # use net's name_scope to give child Blocks appropriate names. with net.name_scope(): net.add(nn.Dense(10, activation='relu')) net.add(nn.Dense(20)) net.hybridize()