R-operator in pytorch?

In fact, @PiotrSokol was kind enough to share his implementation:

Best regards

Thomas