Validates the config is is setup correctly to compile, returning a useful error message if not.
(config)
| 52 | |
| 53 | |
| 54 | def validate_config(config): |
| 55 | """Validates the config is is setup correctly to compile, returning a useful error message if not.""" |
| 56 | assert ( |
| 57 | config.compile_topology != "" |
| 58 | ), "You must pass your desired target hardware in compile_topology, e.g. compile_topology=v5e-256" |
| 59 | assert config.compile_topology_num_slices > 0, "You must set compile_topology_num_slices to a positive integer" |
| 60 | |
| 61 | |
| 62 | def get_topology_mesh(config): |
no outgoing calls