(self, config_file: str)
| 522 | return cls.from_json_file(os.path.join(ckpt_dir, 'config.json')) |
| 523 | |
| 524 | def to_json_file(self, config_file: str): |
| 525 | with open(config_file, 'w') as f: |
| 526 | json.dump(self.to_dict(), f, indent=4) |
| 527 | |
| 528 | def to_layer_quant_config(self, config_file: str): |
| 529 | with open(config_file) as f: |