If there was, we wouldn’t have made a whole package to support this 
The PR I linked corresponds to the doc for functions that are already in pytorch master.
You can try and emulate a similar thing for your particular use case. But that would require calling backward yourself on each node one after the other, after having transfered the gradients for the shared Tensors.
This can be tricky to do.