I am recently working with one huge model.
I am really curious can we split this model into several submodules and we process it with one single GPU in multi-stage?
For example, we iteratively put one submodule on GPU and forward, then we fetch it back and put another submodule on GPU.
Will backward work with this pipeline? I guess it works for forward mode.
Hi,thanks for the reply.
I think it works, but I am not quite familiar with this feature and I did not learn much from the document. Could you please provide an example or a tutorial?
Thanks a lot for the tutorial.
To justify that I understand correctly:
The model consists of a transfer model ( e.g. CycleGAN) and two downstream networks.
Now we divide the model into 4 submodules, let’s say G_A, G_B, M_A, M_B.
The custom function should be: