nnsight
nnsight copied to clipboard
Calling dispatch multiple times dispatch the model multiple times
In the dispatch function:
https://github.com/ndif-team/nnsight/blob/40154765770f1c1697e79668a1454ba848dfe5ca/src/nnsight/modeling/mixins/meta.py#L58
We don't check if the model is already dispatched. Is this on purpose? Are there any reason not to check if model.dispatched is true and if yes skip it?