Open arvoelke opened 5 years ago
Result of internal discussion: While this would be nice to support, it's difficult because we don't know which parts of the model will be on or off chip until after the passthrough removal completes (since it can change which parts are on/off chip). We could work around that by reworking that whole build pipeline, but it also seems relatively low priority, since a) removing passthroughs on the host side should have relatively little impact, and b) the main use case for nengo-loihi is models where most or all of the model is running on-chip (so adding that feature wouldn't affect them).
So our plan for now is just to update the documentation to clarify that remove-passthroughs removes all passthroughs (on or off chip).
Passthrough nodes should only be removed if they are connecting chip -> chip (according to the
convert_passthroughs
docstring), that is, any nodes betweenx
andy
(not shown).However, it will remove passthrough nodes that are on host that never connect back to the chip. For example, if those nodes are not probed.
The ideal output should be:
because none of the nodes here are in between chip -> chip connections.