Hi everyone.
I`d like to implement a custom backend for PT that would support lazy network execution: e.g. when ops get added they are not executed right away but rather accumulate the topology, and only when some trigger happens — e.g. a target tensor gets read — is the previously accumulated topology optimized, compiled and executed on a custom non-CPU device.
Is that at all possible in PT? I couldn`t find much documentation on how to write PT backends of the kind I just described.