HybridConcurrent

class HybridConcurrent(axis=-1, prefix=None, params=None)

Lays HybridBlock s concurrently.

This block feeds its input to all children blocks, and produce the output by concatenating all the children blocks’ outputs on the specified axis.

Example:

net = HybridConcurrent()
# use net's name_scope to give children blocks appropriate names.
with net.name_scope():
    net.add(nn.Dense(10, activation='relu'))
    net.add(nn.Dense(20))
    net.add(Identity())
Parameters:
axis : int, default -1

The axis on which to concatenate the outputs.