(self, remove_source=False, remove_null=True)
| 59 | return self.url or self.file or self.hf_hub_id |
| 60 | |
| 61 | def to_dict(self, remove_source=False, remove_null=True): |
| 62 | return filter_pretrained_cfg( |
| 63 | asdict(self), |
| 64 | remove_source=remove_source, |
| 65 | remove_null=remove_null |
| 66 | ) |
| 67 | |
| 68 | |
| 69 | def filter_pretrained_cfg(cfg, remove_source=False, remove_null=True): |
no test coverage detected