How to set the constraints of the parameters [weights and bias]

Recently, I am reading the paper Input convex neural network whose implementation is using tensorflow. I am working to reproducing the network and do some simulation using PyTorch.

But how to set the constraints of the weights of the network.

Maybe this can help you: Set constraints on parameters or layers

If not describe your problem better. I don’t know this paper (and unfortunately I don’t have time to analyze it deeply).

Thanks! I will check it later.