I mean by a good result lower results but acceptable because we are not using negative weight that has an impact on the back prob algorithm.

Sure that makes sense.

you mean by P.data are the weight of the neural net and clamp function will clip them to 0 (if they are negative)?

That’s right.
Is it what you already have tried here:

(I already tried clipping the weight before training

?