MCPcopy Create free account
hub / github.com/apple/axlearn / Config

Class Config

axlearn/audio/decoder_asr.py:1130–1141  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

default_configMethod · 0.45

Tested by

no test coverage detected