Ah, thanks @pascal_notsawo – I hadn’t thought of defining the prox operations as nn.Modules. That’s helpful, although will take some time to fix (I have a bunch of constraints defined chop/constraints.py at master · openopt/chop · GitHub 1).
If another way is possible, I’m all ears.