Self Adaptive Pinn Pytorch