(cls)
| 114 | |
| 115 | @classmethod |
| 116 | def default_config(cls): |
| 117 | cfg: BaseQuantizer.Config = super().default_config() |
| 118 | # Do not shard the codebook. |
| 119 | # ToDo(zhiyunlu): investigate the codebook partition_spec. |
| 120 | cfg.param_partition_spec = (None, None, None) |
| 121 | cfg.param_init = REQUIRED |
| 122 | return cfg |
| 123 | |
| 124 | def _create_layer_parameter_specs(self) -> dict[str, ParameterSpec]: |
| 125 | cfg = self.config |
no outgoing calls
no test coverage detected