| 153 | |
| 154 | @dataclass |
| 155 | class _SchemaInfo: |
| 156 | # Path to a file containing the root schema. Other included schema files may |
| 157 | # be present in the same directly. |
| 158 | root_path: str |
| 159 | |
| 160 | # An alignment value that can satisfy all "force_align" entries found in the |
| 161 | # schema files. |
| 162 | max_alignment: int |
| 163 | |
| 164 | # The file identifier declared in the root schema. |
| 165 | file_identifier: bytes |
| 166 | |
| 167 | # The alignment for constant tensor data in the schema. |
| 168 | tensor_alignment: int |
| 169 | |
| 170 | # The alignment for delegate data in the schema. |
| 171 | delegate_alignment: int |
| 172 | |
| 173 | |
| 174 | def _prepare_schema( |