speechbrain.nnet.linear 模块
实现线性变换的库。
- Authors
Mirco Ravanelli 2020
达维德·博拉 2021
摘要
类:
计算线性变换 y = wx + b。 |
参考
- class speechbrain.nnet.linear.Linear(n_neurons, input_shape=None, input_size=None, bias=True, max_norm=None, combine_dims=False)[source]
基础:
Module计算线性变换 y = wx + b。
- Parameters:
Example
>>> inputs = torch.rand(10, 50, 40) >>> lin_t = Linear(input_shape=(10, 50, 40), n_neurons=100) >>> output = lin_t(inputs) >>> output.shape torch.Size([10, 50, 100])