espnet2.enh.layers.ncsnpp_utils.layers.Dense
Less than 1 minute
espnet2.enh.layers.ncsnpp_utils.layers.Dense
class espnet2.enh.layers.ncsnpp_utils.layers.Dense
Bases: Module
Linear layer with default_init.
This class implements a linear layer that utilizes the default_init initialization method. It is a subclass of PyTorch’s nn.Module and is designed to be used in neural network architectures.
None
__init__()
Initializes the Dense layer.
Examples
>>> dense_layer = Dense()
>>> input_tensor = torch.randn(10, 20) # Batch size of 10, 20 features
>>> output_tensor = dense_layer(input_tensor)
>>> print(output_tensor.shape)
torch.Size([10, output_features]) # output_features depends on implementation
Initialize internal Module state, shared by both nn.Module and ScriptModule.