Hi,
Is there a specific reason you want to go with multiprocessing and not multi threading?
If you really need multiprocessing, you don’t need to do anything special here to avoid gradients as nothing requires_grad anyways. So no graph will be created.