dlpy.layers.ChannelShuffle¶
-
class
dlpy.layers.
ChannelShuffle
(name=None, n_groups=1, scale=1.0, src_layers=None, **kwargs)¶ Bases: dlpy.layers.Layer
Channel Shuffle layer
Parameters: - name : string, optional
Specifies the name of the layer.
- n_groups : integer, optional
Specifies the number of groups for the layer.
Default: 1- scale : double, optional
Specifies the scale factor to be applied to the number of channels.
Default: 1- src_layers : iter-of-Layers, optional
Specifies the layers directed to this layer.
Returns: -
__init__
(name=None, n_groups=1, scale=1.0, src_layers=None, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__([name, n_groups, scale, src_layers]) Initialize self. count_instances() format_name([block_num, local_count]) Format the name of the layer get_number_of_instances() to_model_params() Convert the model configuration to CAS action parameters