Closed r09g closed 1 year ago
Hi, you can remove the "spatial_mapping" in the mapping file, and at the same time, replace the SpatialMappingConversionStage with SpatialMappingGeneratorStage in the main file. In this case, the framework will search for the best spatial mapping instead of using the user-defined one.
How should the mapping files look (for example tpu_like.py) if one wanted to use the SpatialMappingGeneratorStage to automatically generate the spatial mappings? I tried removing the entire line on spatial mapping but received an error in the model parsing:
Then I tried adding the spatial mapping line in tpu_like.py but just having an empty dict:
there was another error from the SpatialMappingConversionStage on
no mappings provided by the user
. I found that in line 68 and 70 of this conversion stage, the if conditions to check whether the user provided spatial mappings were to check if the "spatial mapping" is an instance of dict or list. However an empty dict still is an instance of a dict so this will not go into automatic spatial mapping generation.Thanks.