r"""A fused :class:`~.Module` including :class:`~.module.Linear`, :class:`~.module.BatchNorm1d` and :func:`~.relu`. Could be replaced with :class:`~.QATModule` version :class:`~.qat.LinearBnRelu1d` using :func:`~.quantize.quantize_qat`.
| 42 | |
| 43 | |
| 44 | class LinearBnRelu1d(_LinearBnActivation1d): |
| 45 | r"""A fused :class:`~.Module` including :class:`~.module.Linear`, :class:`~.module.BatchNorm1d` and :func:`~.relu`. |
| 46 | Could be replaced with :class:`~.QATModule` version :class:`~.qat.LinearBnRelu1d` using :func:`~.quantize.quantize_qat`. |
| 47 | """ |
| 48 | |
| 49 | def forward(self, inp): |
| 50 | return relu(self.bn(self.linear(inp))) |