Configures LASDecoderModel. Attributes: decoder: A config that instantiates the autoregressive Decoder. z_loss_scale: Coefficient for auxiliary z-loss loss term. label_smoothing: The factor to control label smoothing in cross entropy.
| 1128 | |
| 1129 | @config_class |
| 1130 | class Config(BaseASRDecoderModel.Config): |
| 1131 | """Configures LASDecoderModel. |
| 1132 | |
| 1133 | Attributes: |
| 1134 | decoder: A config that instantiates the autoregressive Decoder. |
| 1135 | z_loss_scale: Coefficient for auxiliary z-loss loss term. |
| 1136 | label_smoothing: The factor to control label smoothing in cross entropy. |
| 1137 | """ |
| 1138 | |
| 1139 | decoder: Decoder.Config = Decoder.default_config() |
| 1140 | z_loss_scale: float = 0.0 |
| 1141 | label_smoothing: float = 0.0 |
| 1142 | |
| 1143 | @classmethod |
| 1144 | def default_config(cls) -> Config: |
nothing calls this directly
no test coverage detected